如何進(jìn)行網(wǎng)站布局_網(wǎng)頁(yè)設(shè)計(jì)教程
推薦:成功構(gòu)建網(wǎng)站的方法Ifyou'redoingbusinessontheInternet,oneofthemostimportantaspectsofyoursuccessisyourwebsite.Ifyourwebsitedoesn'tlookprofessio
Frames Vs Tables
框架Vs表格
Some people like to use frames on their sites. I would recommend you avoid them if you can ... and you probably can.
有些人喜歡利用表格設(shè)計(jì)網(wǎng)站,但我建議你最好不要使用表格。我想你可以避免使用表格。
Frames can be useful on occasion but "the pain is greater than the gain". Too many people complain of problems with frames than you can afford to ignore. So if you insist on using them, you'll need to create an alternative no-frames set of pages for these users. Honestly ...
有時(shí)候,框架確實(shí)可以發(fā)揮作用,但它的缺點(diǎn)多于優(yōu)點(diǎn)。你一定不能忽視框架的缺點(diǎn),因?yàn)樘嗳艘呀?jīng)在抱怨框架所帶來(lái)的問(wèn)題。假如堅(jiān)持使用框架,你需要為網(wǎng)站用戶創(chuàng)造另外一套無(wú)框架網(wǎng)頁(yè)。但老實(shí)地說(shuō),
... it's just not worth the trouble!
這種做法太麻煩!
As If that wasn't enough reason, many search engine spiders also encounter difficulties with frames.
并且很多搜索引擎在搜索框架時(shí),會(huì)越到一些問(wèn)題。
This means you'll either have to spend additional time learning how to overcome these shortcomings or be doomed to low search rankings. Convinced?
這就意味著,你需要花費(fèi)時(shí)間學(xué)習(xí)如何克服框架的缺點(diǎn),否則網(wǎng)站注定會(huì)在搜索引擎中有一個(gè)低排名。
I hope so - for your sake!
我希望你的網(wǎng)站不會(huì)出現(xiàn)這種情況。
In most of the situations in which you might feel you need to use frames you can usually use tables equally effectively. If not on their own, then in conjunction with SSI - Server Side Includes - which also allow you to write separate pages for inclusion in another 'main' page.
大多數(shù)情況下,表格可以代替框架。利用表格的同時(shí),你還可以使用SSI(Server Side Includes),它可以幫助你編輯主要頁(yè)面所包含的其它頁(yè)面。
The left column navigation bar, for example, is one area that it may seem appealing to place in it's own frame. The content remains the same on every page and should you need to change it, you can effect a global change just by altering a single file.
比如說(shuō),使用框架布局左列導(dǎo)航條,可能看起來(lái)很有吸引力。所有網(wǎng)頁(yè)布局一致,并且修改一個(gè)單獨(dú)文件之后,就可以改變所有網(wǎng)頁(yè)。
What many people don't realize that you can achieve almost the same result by using an SSI callout in a table cell within the page. This will reference another file on the server which will be written into this location when called. To browsers and search engine spiders alike the page appears as a normal web page and doesn't give rise to any of the problems associated with the use of frames.
很多人沒(méi)有意識(shí)到,在表格單元中利用SSI編號(hào),也可以達(dá)到這個(gè)效果。這就會(huì)涉及到服務(wù)器中的另外一個(gè)文件,這個(gè)文件在需要時(shí)會(huì)設(shè)置到這個(gè)位置。瀏覽器與搜索引擎,更喜歡看似普通、不會(huì)出現(xiàn)框架問(wèn)題的頁(yè)面。
等一下!
Whilst we're on the subject of tables...
我們正在談?wù)摫砀駟?wèn)題。
... don't make the same mistake I did when first using them!
第一次利用表格時(shí),不要出現(xiàn)我曾出現(xiàn)過(guò)的問(wèn)題。
Tables are great for page layout - you can put things just where you want them to appear on the page. So I made one big table for the whole page, split it up into various rows and columns, then put (nested) other tables inside these and in some places yet smaller ones inside them ...
表格是一種網(wǎng)頁(yè)布局的好方法,你可以根據(jù)需要,選擇網(wǎng)頁(yè)內(nèi)容的位置。我在網(wǎng)頁(yè)中設(shè)計(jì)了一個(gè)大表格,劃分為很多行、很多欄,然后在內(nèi)部表格中嵌套更小的表格。
Wrong! Wrong! Wrong!
錯(cuò)誤!
Those of you that are quietly chuckling can stop now, thank you! Don't pretend you've never made the same mistake!
請(qǐng)你不要笑,我想你肯定犯過(guò)類似的錯(cuò)誤。
Where was I ...?
我哪里出錯(cuò)了呢?
Oh yes ... tables. Now the thing with tables is that the browser downloads all the contents of the table BEFORE it actually draws anything on the screen. This includes the contents of any nested tables. So what did that mean for my beautiful page?
是的,表格。這里的問(wèn)題是,在表格內(nèi)容下載完畢之前,瀏覽器不會(huì)在顯示屏中呈現(xiàn)任何內(nèi)容。這就意味著,任何嵌套的內(nèi)容都要下載完畢,那么這些布局精美的網(wǎng)頁(yè)會(huì)怎樣呢?
It took DAYS to download!
下載時(shí)間太長(zhǎng)了!
Actually, it didn't really take that much longer, but it *seemed* like it did. The page remained completely blank until the browser had downloaded every single component and then suddenly flung them all onto the page at once! Leaving your visitors staring at a blank page for ages like this is not a good way to keep them on your site!
事實(shí)上,網(wǎng)頁(yè)下載不需要那么長(zhǎng)時(shí)間。網(wǎng)頁(yè)首先會(huì)空白,瀏覽器下載完畢之后,網(wǎng)頁(yè)忽然出現(xiàn)全部?jī)?nèi)容。假如網(wǎng)站訪問(wèn)者長(zhǎng)時(shí)間瀏覽空白頁(yè)面,他們很快會(huì)離開(kāi)。
As ever, learn from your mistakes - or my mistakes! - and split your page up into several separate tables. Keep the whole lot as simple as possible and try to avoid nesting more than one layer of tables inside another. Browsers also take longer to draw tables if you don't specify the sizes. This is because the browser has to calculate how big the table needs to be to fit in all the contents.
繼續(xù)分析問(wèn)題。我們應(yīng)該避免在表格中嵌套其它表格,避免把表格繼續(xù)分割。假如表格尺寸沒(méi)有標(biāo)明,瀏覽器下載表格的時(shí)間會(huì)比較長(zhǎng),因?yàn)椋瑸g覽器需要計(jì)算表格將會(huì)占用的空間。
You can also employ tables to add color to a page in preference to slow loading graphics. Or to effectively draw attention to text placed in a colored box on the page.
你可以利用表格填充網(wǎng)頁(yè)顏色,這樣比下載速度慢的圖片更好。或者把文本放置在網(wǎng)頁(yè)有顏色的表格中。
Tidy and Businesslike
整潔并且有條理
Forget about loud colors, blinking or scrolling text, fancy animated graphics ...
避免使用濃重的顏色、炫目或者滾動(dòng)文本、希奇的動(dòng)畫圖像。
... anything that distracts the eye.
以及其它轉(zhuǎn)移用戶注重力的內(nèi)容。
Your visitor needs to concentrate on your text if you want to get them to 'bite'. Compare your site to it's offline 'brick and mortar' equivalent.
網(wǎng)站必須保證用戶集中精力閱讀文字內(nèi)容,這樣才可以吸引他們購(gòu)買產(chǎn)品或服務(wù)。你可以參考實(shí)體商店,設(shè)計(jì)網(wǎng)站。
Would you paint that bright yellow and deck it out with flashing lights?
你會(huì)把網(wǎng)頁(yè)設(shè)計(jì)成嫩黃色或者很亮的顏色嗎?
... 'Nuff said!
最好不要!
Keep your pages clean and well organized. People must be able to find things easily.
網(wǎng)頁(yè)必須整潔、有條理,便于用戶尋找信息。
Imagine calling into a supermarket in a strange town to buy a box of tissues. You're in a hurry. To your dismay you find that none of the isles are labelled and you are forced to walk all over the store to find what you want.
假設(shè),你在一個(gè)生疏城鎮(zhèn)的超市中匆忙地購(gòu)買餐巾紙。使你掃興的是,商品沒(méi)有標(biāo)簽,你需要在商店中到處尋找商品。
How annoyed and fed up would you feel?
你是不是感覺(jué)很苦惱呢?
Sure, you'd still buy ... but only because of the hassle involved in leaving the store and going to another. Online this is as easy as ...
當(dāng)然,你肯定會(huì)購(gòu)買,但你可能會(huì)去別的商店。網(wǎng)上購(gòu)買也是同樣道理。
... click ... "I'm outta here!"
有些網(wǎng)站使用戶難以發(fā)現(xiàn)所需信息。
Actually, when you go to a supermarket you'll normally find that everything's neatly labelled and tidily displayed in rows with signs above them... build your online store along the same lines.
實(shí)際上,超市中的產(chǎn)品都很整潔,并且產(chǎn)品旁邊都會(huì)有標(biāo)簽。構(gòu)建網(wǎng)上商店時(shí),遵循這些規(guī)則。
Apply what I call 'the three clicks rule'... make sure your visitor can find whatever they're looking for within three clicks. If not you run the risk of them becoming frustrated and leaving.
確保網(wǎng)站用戶在三次點(diǎn)擊之內(nèi),找到所需內(nèi)容,否則他們會(huì)沮喪地離開(kāi)網(wǎng)站。
分享:團(tuán)隊(duì)協(xié)作 每一環(huán)都很重要!我想說(shuō)的是一種團(tuán)隊(duì)的精神,我想說(shuō)的是一種全局的思維,寫這篇文章得益于我看到的一個(gè)小故事:在剛過(guò)去的雅典奧運(yùn)會(huì)上,男子4×100米接力賽,美國(guó)隊(duì)在人員布局
- 中國(guó)互聯(lián)網(wǎng)黑色產(chǎn)業(yè)人數(shù)近10萬(wàn) 5分鐘1起網(wǎng)絡(luò)入侵
- 馬云最后的發(fā)布會(huì):打假,打出阿里的新未來(lái)
- 實(shí)踐分享:ACCESS數(shù)據(jù)庫(kù)導(dǎo)入mysql數(shù)據(jù)庫(kù)
- ACCESS數(shù)據(jù)庫(kù)轉(zhuǎn)ORACLE數(shù)據(jù)庫(kù)分享
- CDN.net免費(fèi)CDN申請(qǐng)使用教程:100GB流量香港日本新加坡節(jié)點(diǎn)
- WordPress 教程:為插件自定義數(shù)據(jù)表
- 如何使用查找我的iPhone教程
- 微信公眾平臺(tái)教程(二) 消息管理與群發(fā)
- 中國(guó)IPv4地址今年將告罄 IPv6期待打破政策局
- 移動(dòng)廣告野蠻成長(zhǎng):75%投放在iOS平臺(tái)
- 災(zāi)難面前,互聯(lián)網(wǎng)公司可以如何做的更好?
- 富士康500萬(wàn)部iPhone遭蘋果退貨 損失10億元
網(wǎng)頁(yè)設(shè)計(jì)教程Rss訂閱網(wǎng)站制作教程搜索
網(wǎng)頁(yè)設(shè)計(jì)教程推薦
猜你也喜歡看這些
- 談?wù)剎html的結(jié)構(gòu)標(biāo)簽
- 深入CSS結(jié)構(gòu):合理運(yùn)用div和span
- 2005年web標(biāo)準(zhǔn)發(fā)展回顧
- 第4天:調(diào)用樣式表
- CSS中expression使用簡(jiǎn)介
- 符合Web標(biāo)準(zhǔn)的超鏈接
- 從GMail認(rèn)識(shí)的W3C網(wǎng)頁(yè)標(biāo)準(zhǔn)和Ajax
- 使用Web標(biāo)準(zhǔn)建站第3天:定義語(yǔ)言編碼
- 使用web標(biāo)準(zhǔn)能帶來(lái)什么商業(yè)價(jià)值?
- 第6天:XHTML代碼規(guī)范
- 相關(guān)鏈接:
- 教程說(shuō)明:
網(wǎng)頁(yè)設(shè)計(jì)教程-如何進(jìn)行網(wǎng)站布局。