婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 創建無表格網站的原因和原則 譯文

創建無表格網站的原因和原則 譯文

熱門標簽:荒野大鏢客2地圖標注怎么變中文 武漢人工外呼系統 沈陽智能外呼系統排名 北川縣地圖標注 中國地圖標注各省份 蘇州通信外呼系統多少錢 上古卷軸5地圖標注mod 移動400辦理電話 山西旅游景地圖標注
In a time of web developers who just like to say that 'Tables are Evil' and can't (or won't) explain why, this article will attempt to give you some solid reasons that people create tableless designs. Included are six major benefits of creating tableless sites, and how to sell your desire to alter your website to a resistant manager. 
一時間,網頁設計師們都在說:表格是魔鬼!但是他們并不能講出其中的原因。那么在這里,我將給你一些具有說服力的理由,表明為什么人們不愿意使用表格來創建網頁。其中包括創建無表格網站的四個好處,以及如何將網站轉變為經久不衰的“統治者”,并將它推銷出去。
Let's begin with the benefits of a tableless layout. These are only in the order that I feel they should go in, some things are more important to other people, so rank them as you will. 
讓我們先從表格布局的好處開始講起。之所以把它列在其中是因為他對很多人是至關重要的。
Forces You To Write Well-Formed Code 
迫使你書寫格式嚴謹的代碼
You cannot have a properly made tableless layout, and use improper and non-standard code. Well, let me correct that - you can (technically you can do it) but it defeats the whole purpose. When you are creating a tableless design, you should be using standards compliant code. I think that anything that makes you get into the habit of always writing clean code is a good thing. 
你不可能使用不合適的或不標準的代碼來進行無表布局。讓我更正一下——你可以(僅從技術角度來說),但是,這樣做會使得所有目標落空。當你進行無表設計時,你必須使用一套合適的、標準的代碼。我認為,能夠讓你養成一個好的編程習慣的所有事情都是好事情。
Faster Loading Time 
下載更快
This is absolutely a benfit of a tableless layout, and for several reasons. First, on a fundamental level - tables load slowly. For the most part, unless you set the height and width of your table elements, all the text has to be loaded and rendered BEFORE the table sizes itself to the page. Of course, this is what so many people loved about tables isn't it? The fact that they were so easily sizeable. The downside is how much more time they take to load. 
無表布局非常有好處,其中包含下面這幾個理由:1、從基本原理上講,使用表格布局將減緩下載速度;更重要的一點,無論你怎樣設置表格元素的高度和寬度,表格內的所有元素都將在加載表格之前加載,這可能是很多人熱衷表格布局的原因吧!事實上,表格的尺寸一般都很大,所以它們反而會加載更長的時間。我們不能忽視它的下載時間。
Okay, so the solution to that loading time is to set all the values explicitly, right? So now we see another downside. Code clutter that increases loading time. First of all, just by themselves, tables take a lot of code. How many td open and close tags does your average table based layout have? Tons. Having to set all the values explicitly only adds to the page size and loading time. There are many experiments that have been done on this topic, I'll point you toward this one that StopDesign did on a remake of the Microsoft website from a tablebased site to a tableless layout. That remake showed a 62% file size reduction of the site, and using their average hits per month for the Microsoft site, calculated that Microsoft would be saving 924 GIGS in bandwidth per day, and 329 Terabytes of bandwidth per year. For any company that pays for bandwidth, these things are important. 
因此,我們必須把所有的值設置清楚,從而減少下載的時間。接下來讓我們看看其它的缺點吧:代碼的混亂會增加加載的時間。首先,表格本身包含了大量的代碼,你可以數數看其中包含了幾個“td”開始和結束標簽,我想應該是很多吧。為了把它們設置的清楚一點,必須增加網頁的尺寸從而導致下載時間延長。關于這個主題,我們已進行了多次實驗。盡量不要再使用表格進行布局了,看看微軟的做法吧,他們原來是使用表格布局的已經開始使用非表格布局了。研究表明,這種做法為該網站節省了62%的空間大小;通過每月平均點擊率計算,微軟將每天節省924 GIGS的帶寬,一年將節省329Terabytes的帶寬。對于任何一家帶寬占用較大的公司,這樣做都是非常必要的。
Easier to Read Code 
增加代碼的易讀性
If you are using standard code, semantic document conventions, and a tableless layout, your code can be so clean that it looks practically like just regular text with a few extra symbols. 
如果使用的是標準代碼,標準語義文檔和非表格布局,那么你的代碼將看上去非常清楚,簡直就如同一個帶有一些特殊符號的慣用文本。
That is a great benefit because it not only makes it easier for you to update, but it makes it easier for a non-technical user to make small alterations to. Additionally, if you work as a web developer in a more freelance capacity, it is common for there to be a full-time web developer who has to maintain that site. Clean and simple to read code makes that a easy transition. We like it when people leave us easy to understand code, right? Let's return the favor. 
使用非表格布局的好處不僅在于方便你對網頁進行更新,而且還可以使非轉業的人對其進行細微地修改和轉換。另外,如果你是一個自由職業的網頁設計師,你也可以讓專業網頁設計師記住你的網站。代碼的簡明性可以使代碼轉化工作變得非常容易。我們都希望代碼開發者們為我們留下的是簡單的代碼,所以,當我們書寫代碼時,也考慮考慮這點吧。
Print Alternate Views 
方便的樣式定義
When you create a page using a table-layout, you are rather unfortunately locked into a certain layout. Developers who have created table-based websites, as most of us have at some point - particularly if you were in the the industry before the big tableless movement, know that you often have to create a separate printable version of your pages. This can be, needless to say, quite tiresome. 
當我們使用表格布局創建網頁時,你不應該拘泥于一種特定的布局方法。使用表格布局的開發者,如同我們當中的大多數人一樣,必須要注意一點,如果你是在“網頁設計無表格化”運動之前從事設計工作的,你必須為每張網頁創建一種獨立的樣式,這樣做非常繁瑣。
Ease of printing style control is a huge benefit with a tableless layout. You can easily create a single new printing style that applies to all your pages, instead of making them individually. That alone is a huge time saver, but there is more. 
簡易的輸出樣式控制是無表化布局的一個巨大優勢。你可以輕松地創建一種簡單的全新布局,并將其運用到所有網頁中,而無需對每個頁面都設計一套樣式。這無疑會節省巨大的時間。
While you can control all elements with this approach, the biggest key is organization of information within the page itself. Using the example, let's assume that the display order we want all our pages to print using the following order: The page header first, the content next, the special news after that, then the link list, and then the footer. However! We still want it to display as it would normally when viewing (meaning the header at the top, the links on the left, content in the middle, news on the right, and footer at the bottom). With a table-based layout, you would have to create a new page to do that special printing organization because the print style will read your columns left to right. With a table-less layout, you are not bound by this. You can order the content in your page however you like, and still control the way it looks... all by using the CSS only ! 
當你使用這種方法控制所有元素時,那么首先要考慮的一個關鍵點就是:如何將頁面本身的所有信息有效地組織起來。讓我們設想一下下面的排序方式:首先是頁首,接下來是內容,然后是特定的新聞信息和鏈接列表,最后是頁腳。然而,我們仍然希望它按照我們正常的瀏覽習慣進行顯示(即:頁首在最頂端;鏈接列表在中間左端;內容在中間;新聞在中間右端;頁腳在最底端)。如果你使用表格布局的話,那么你必須重新創建一個頁面,因為表格的讀取順序是從左往右的;但是,如果你使用了無表化布局,那你就不會被這種形式所束縛。你可以隨心所欲的擺放內容的位置并很好的對它進行控制。而只需要使用CSS便可以順利實現上述的目的。
Additionally, because we can put the content in whatever order we want in the HTML, and then move the content blocks around for website viewing using CSS - we can have ultimate control over presentation. 
另外,因為我們可以使用CSS將所有內容或部分內容放在HTML頁面中的任何地方,因此,我們可以對它的表現方式做出隨意的控制。
That is very important because the clean code, and ability to alter presentation, means that your site can be viewable by someone on a small mobile phone screen。The flexibilty and organization leads to being able to create a powerful website that takes advantage of some of the possibilities with XHTML. 
因為代碼的精簡是如此的重要,它可以隨意的控制內容的表達方式和位置,因此,即使是在一個手機屏幕上,也可以很輕松的展現你的網頁。我們可以利用XHTML的擴展性和組織性來創建優秀的網站。
Search Engine Optimization 
搜索引擎優化
Due to the fact that you can organize your most important content at the top of your page, without affecting the layout, your page can be better optimized for search engines. For instance, say that I have a navigation bar on the left side of the page that lists tons of parts of the site that are actually great keywords. I could move that navigation bar code higher up in my actual HTML, without changing the layout, because I'm using the CSS to position the navigation where I want it. 
因為你可以使用無表化布局將最重要的內容放在頁面頂端,而這樣做又不會影響整個布局,那么你的頁面可以最大限度的執行搜索引擎優化。舉個例子來說,我在頁面的左邊部分放置了導航條,上面寫了一些關注率非常高的關鍵詞。因此我可以把導航條代碼寫在HTML代碼之前而不影響整個頁面布局。因為我是使用CSS來調整它的位置的。
Those search engines can also more clearly find common words throughout your document without having to filter through code. Search engines prioritize websites that have a higher content to code ratio, so putting all your style elements into your external CSS stylesheet makes your site highly content based to a search engine. Tableless layouts, as previously mentioned, decrease page size and loading time - another bonus to search engines. 
搜索引擎不需要過濾代碼就可以找到將整個文檔的通用關鍵字。搜索引擎會搜索那些內容比例所占頁面比例較多的頁面,因此,把樣式元素放到外部樣式表中,這樣可以使內容凸顯出來。上描提到的無表化布局,明顯的減少了頁面尺寸和下載時間,可以更大限度的利用搜索引擎。
Presentation Flexibility 
全方位適應性
Making changes to a CSS based Tableless layout is simple. You can alter the CSS file only, changing as many styles and graphics as you want. The affects cascade through all the pages on your website, and eliminate the need for manually updating many pages. 
以CSS為基礎的無表化布局是非常簡易的一種方法。你可以通過轉變CSS文件來更改你所希望的樣式和圖片。在整個網站中使用層疊樣式表可以減少日常頁面更新的工作量。
For one of the best known examples of how powerful presentation can be, you can visit the CSS Zen Garden and navigate through the 'Select a Design' links to see the differences. Each of the different designs uses exactly the same HTML file content. The only thing that changes is the CSS file for each one. 
你可以訪問一下著名的網站:CSS Zen Garden,在整個頁面布局上,它堪稱經典。你可以通過點選導航條上的“Select a Design”來查看不同的布局風格。每個不同的設計風格都使用了完全一致的HTML內容。它僅通過使用不同的CSS來改變HTML的內容。
Selling Yourself On Standards 
用不同的標準來推銷你自己
Sometimes knowing how to code for standards, and create flexible tableless layouts is not enough. There are some web designers who meet with difficulties from their management. Most often those difficulties are rooted in the management being unaware of the benefits of using tableless content and CSS driven layout. 
這里要說的是:使用標準的代碼,創建可擴展的無表格布局還是不夠的。一些網站設計師還是遇到了很多網站管理上的困難。在大多數情況下,這都是由于忽略了無表化布局的內容以及CSS布局方式而導致的。
If you want to design for standards, but you work for a company that is not very forward-thinking in allowing you the time to work on the changes -- try this: Make them think about their pocket-book. Point out the cost saving benefits. 
如果你希望進行標準化設計,但是你所在的公司不允許這么做,因為可能會耽誤時間。那么你可以這樣做:把它們記載袖珍筆記本中,并指出哪里可以節省成本。
For instance, try grabbing a single page of existing code. Clean it up to standards. Compare the page size to before (including image optimization), and count the difference in bytes saved. Multiply that across the number of site pages, and the number of days per month. Then explain to them the amount of bandwidth cost saved monthly if this was done across the whole site. If that isn't enough, show them how quickly you can make changes to a website once it is CSS driven, and push the idea that you will be able to change the site more rapidly when there are needed updates, and you will have more time to focus on adding in new functionality to the site - instead of spending your time doing maintenance. 
舉個例子來說,盡可能的抓取現有的代碼頁面,并將其中的代碼以簡明標準的代碼格式重新書寫。然后,比較前后兩者頁面的尺寸差異(包括對圖片的優化),計算尺寸差值。然后,說明一下,如果按照新的布局方式,每個月可以省去多少帶寬成本。如果這樣還不夠,你可以再具體說明一下,如果用CSS布局會提高多少下載速度;并且,在頁面更新的時候,可以省去多少更新時間。這樣一來,你就可以把時間省下來用于提升網站的功能性——這樣就省去了大部分維護的時間。
Summary 
總結
Hopefully, this little article will serve as a way to get you started on understanding why to use a tableless layout, what the benefits are, and you can easily take a look at Layout Gala and download just 1, or all 40 of the tableless layout examples to get you started. However, the best step toward moving to a tableless design is to slowly move your website toward a standard compliant version first, before you get rid of the tables. To get to that point, study as much on CSS as you can, read through the articles here and elsewhere on the web, and moving from table layouts to tableless will be just a matter of time. 
寫這篇文章的目的在于,讓大家能夠大小使用無表化布局的疑慮,并開始使用這種方式進行布局。這里有一條捷徑,你可以直接在Layout Gala網站上下載現成的40個模版案例來進行布局。在你放棄使用表格之前,你應該盡可能放慢網站的無表化進程。你應該充分學習CSS技術,讀完這篇文章以及網站上其他相關的文章之后,你制作無表布局的網站只是時間問題了。

標簽:海東 邯鄲 南充 濱州 遼源 喀什 陽泉 東莞

巨人網絡通訊聲明:本文標題《創建無表格網站的原因和原則 譯文》,本文關鍵詞  創建,無,表格,網,站的,原因,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《創建無表格網站的原因和原則 譯文》相關的同類信息!
  • 本頁收集關于創建無表格網站的原因和原則 譯文的相關信息資訊供網民參考!
  • 推薦文章
    婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av
    成人免费av资源| 中文字幕一区二区三区四区不卡 | 综合婷婷亚洲小说| 99亚偷拍自图区亚洲| 国产亚洲精品aa午夜观看| 国产一区二区三区久久悠悠色av| 国产精品2024| xf在线a精品一区二区视频网站| 色综合久久中文字幕综合网| 91精品国产入口| 99re热视频这里只精品| 日韩精品电影在线观看| 91啪九色porn原创视频在线观看| 亚洲国产成人porn| 亚洲午夜在线视频| 午夜激情一区二区三区| 精品中文字幕一区二区小辣椒| 精品一区二区在线视频| 国产黄人亚洲片| 99久久久无码国产精品| 91免费视频观看| 国产欧美综合色| 91精品免费在线观看| 99精品久久免费看蜜臀剧情介绍| 色综合激情五月| 国产日产亚洲精品系列| 久久国产精品99精品国产| 精品少妇一区二区三区视频免付费| 亚洲免费观看高清完整版在线| 99久久99久久久精品齐齐| 亚洲成人久久影院| 国产成人午夜电影网| 国产精品视频一二| 午夜在线成人av| 大白屁股一区二区视频| 日韩欧美国产小视频| 亚洲色欲色欲www| 午夜精品福利一区二区三区av| 亚洲一区二区三区四区在线| 国产精品一区二区久久不卡| 欧美午夜精品一区二区三区| 精品av综合导航| 亚洲成人激情社区| 99视频热这里只有精品免费| 久久综合九色综合欧美亚洲| 午夜久久久久久久久久一区二区| caoporen国产精品视频| 久久影院午夜片一区| 爽好久久久欧美精品| 色视频成人在线观看免| 中文字幕色av一区二区三区| 国产精品一区免费视频| 精品国产一区二区三区四区四| 亚洲成av人片一区二区| 94-欧美-setu| 国产精品大尺度| 成人看片黄a免费看在线| 欧洲一区在线观看| 久久综合九色综合97婷婷女人| 亚洲最新视频在线观看| 午夜免费久久看| 亚洲欧洲av一区二区三区久久| 日本一区二区三区国色天香 | 一区二区三区欧美视频| 成人激情文学综合网| 久久精品在线观看| 国产乱码精品一区二区三| 日韩毛片在线免费观看| 艳妇臀荡乳欲伦亚洲一区| 国产色婷婷亚洲99精品小说| 国产69精品一区二区亚洲孕妇 | 在线播放91灌醉迷j高跟美女 | 欧美日韩国产精选| 欧美激情综合五月色丁香小说| 黄色日韩三级电影| 久久尤物电影视频在线观看| 国产精品66部| 国产精品成人一区二区三区夜夜夜 | 亚洲电影一级黄| 欧美群妇大交群中文字幕| 日本美女一区二区| 欧美r级电影在线观看| 国产乱对白刺激视频不卡| 国产女人水真多18毛片18精品视频| 国产福利视频一区二区三区| 亚洲综合视频在线观看| 欧美日韩国产经典色站一区二区三区| 天堂精品中文字幕在线| 精品免费日韩av| 盗摄精品av一区二区三区| 亚洲另类春色校园小说| 欧美日韩精品二区第二页| 美女网站在线免费欧美精品| 国产日韩欧美一区二区三区综合| 99国产精品国产精品毛片| 性欧美大战久久久久久久久| 欧美成人午夜电影| a美女胸又www黄视频久久| 天天综合色天天| 亚洲国产精品成人综合| 欧美日韩极品在线观看一区| 国产91精品精华液一区二区三区| 亚洲国产美女搞黄色| 精品捆绑美女sm三区| 91在线porny国产在线看| 天天综合天天综合色| 国产精品久久久久9999吃药| 制服丝袜国产精品| 9人人澡人人爽人人精品| 日韩av二区在线播放| 国产欧美综合色| 日韩欧美一区电影| 日本道色综合久久| 国产精品一线二线三线精华| 午夜精品久久久久久久久久久 | 777欧美精品| 99这里只有久久精品视频| 美女久久久精品| 一区二区在线观看视频在线观看| 精品国产91久久久久久久妲己| 成人av免费网站| 国产一区 二区| 日本一不卡视频| 亚洲免费伊人电影| 欧美韩国日本一区| 2020国产精品自拍| 欧美一级片在线看| 欧美另类一区二区三区| 一本大道av伊人久久综合| 成a人片亚洲日本久久| 国产毛片精品国产一区二区三区| 日韩av一区二| 午夜成人在线视频| 亚洲国产精品天堂| 亚洲色图色小说| 一区二区中文视频| 国产精品美女久久久久久久| 国产亚洲欧美在线| 精品福利av导航| 精品国产乱码久久久久久老虎| 欧美一区二区三区在线观看视频 | 一区av在线播放| 午夜不卡av在线| 一区二区三区中文字幕在线观看| 久久综合久久综合九色| 日韩女同互慰一区二区| 欧美挠脚心视频网站| 国产一区二区三区国产| 久99久精品视频免费观看| 日韩不卡手机在线v区| 男女性色大片免费观看一区二区| 日一区二区三区| 免费看黄色91| 色综合久久中文综合久久97| 国产乱码一区二区三区| 午夜精品久久久久久久99水蜜桃| 国产精品福利一区| 69精品人人人人| 欧美最猛黑人xxxxx猛交| 欧美日韩日日骚| 国产福利精品一区| 日韩精彩视频在线观看| 日韩女优毛片在线| 伊人开心综合网| 国产精品一二三区| 色久优优欧美色久优优| 欧美一级日韩一级| 日本在线不卡视频| 欧美精品一区二区三区四区| 国产一区二区毛片| 国产91综合一区在线观看| 亚洲线精品一区二区三区| 精品在线播放免费| 色天天综合色天天久久| 色偷偷88欧美精品久久久| 在线观看网站黄不卡| 欧美午夜宅男影院| 国产91丝袜在线观看| 欧美日免费三级在线| www亚洲一区| 一区av在线播放| 亚洲视频你懂的| 精品久久久网站| 欧美午夜精品免费| 日本一区二区三区电影| 中文字幕国产精品一区二区| 国产成人免费在线| 国产成人午夜高潮毛片| 国产aⅴ精品一区二区三区色成熟| 国产日韩欧美不卡在线| 国产精品大尺度| 中文幕一区二区三区久久蜜桃| 日韩影院在线观看| 欧美日韩国产首页| 国产91露脸合集magnet| 亚洲欧洲国产日韩| 青青草视频一区| 欧美日韩1区2区| 久久精品夜夜夜夜久久| 亚洲第一主播视频|