DIV+CSS佈局和TABLE佈局的優缺點
TABLE佈局是早以前CSS不存在的時候興起的,是對TABLE標籤的不正規使用,Table標籤就是表格,是用來顯示數據的,而不是用來佈局網頁的,雖然它有時候佈局網頁很簡單。現在絕大多數的網站都是用DIV+CSS佈局。這兩種佈局各有各的優點。
什麼是div+css?
DIV+CSS是網站標準(或稱“WEB標準”)中常用術語之一,div+css 是一種網頁的佈局方法,這一種網頁佈局方法有別於傳統的HTML網頁設計語言中的表格(table)定位方式,可實現網頁頁面內容與表現相分離。XHTML是The Extensible HyperText Markup Language(可擴展超文本標識語言)的縮寫。XHTML基於可擴展標記語言(XML),是一種在HTML 基礎上優化和改進的的新語言,目的是基於XML應用與強大的數據轉換能力,適應未來網絡應用更多的需求。在XHTML網站設計標準中,不再使用表格定位技術,而是採用DIV+CSS的方式實現各種定位。
流行優勢
1、符合W3C標準。
2、支持瀏覽器的向後兼容。
3、搜索引擎更加友好。
4、樣式的調整更加方便。
5、CSS的極大優勢表現在簡潔的'代碼,對於一個大型網站來說,可以節省大量帶寬。
6、表現和結構分離,在團隊開發中更容易分工合作而減少相互關聯性。
一+css佈局的好處:
1.符合W3C標準,代碼結構清晰明瞭,結構、樣式和行爲分離,帶來足夠好的可維護性。
2.佈局精準,網站版面佈局修改簡單。
3.加快了頁面的加載速度(最重要的)(在IE中要將整個table加載完了才顯示內容)。
4.節約站點所佔的空間和站點的流量。
5.用只包含結構化內容的HTML代替嵌套的標籤,提高另外搜索引擎對網頁的搜索效率。
二e佈局的好處(table佈局也不是一點用的沒有,這點是毋庸置疑的)
1.容易上手。
2.可以形成複雜的變化,簡單快速。
3.表現上更加“嚴謹”,在不同瀏覽器中都能得到很好的兼容。
相關文章
-
學習Dreamweaver的CSS網頁佈局ul和li
網頁設計是指使用標識語言(markup language),通過一系列設計、建模、和執行的過程將電子格式的信息通過互聯網傳輸,最終以圖形用戶界面(GUI)的形式被用戶所瀏覽。下面小編爲大家帶來的是學習Dreamweaver的CSS網頁佈局ul -
Scientists Build Robots to Live With Humans英語美文
Industrial robots are already working in many factories around the world and in our homes, for instance as smart vacuum cleaners. Scientists say in a few years we will start seeing so-called "social r -
Dreamweaver網頁製作之CSS佈局規則
導語:Dreamweaver網頁製作過程必須用到的是CSS語言,下面就由小編爲大家介紹一下Dreamweaver網頁製作之CSS佈局規則,歡迎大家閱讀!CSS文件的鏈接方式·附加鏈接:外部CSS文件·導入CSS:常用應用多個CSS文件時,將多個CSS導入一 -
優秀英語作文:Double Seventh Festival
The Double Seventh Festival, on the 7th day of the 7th lunar month, is a traditional festival full of romance. It often goes into August in the Gregorian calendar.This festival is in mid-summer when the -
關於Thieving Bird Apes Its Victims的英語作文範文
[Music plays] Neil Young? No, that’s Jimmy Fallon imitating Neil Young. Doing impressions can be a valuable skill. In fact, a bird called the fork-tailed drongo makes a good living at it, in its home -
雅思閱讀模擬試題:Sun's fickle heart may leave us cold
雅思閱讀模擬試題實戰訓練題:How a Frenchman is reviving McDonald's in EuropeA. When Denis Hennequin took over as the European boss of McDonald's in January 2004, the world's biggest rest -
英語閱讀:African Union Leaders Talk Mali, Chinese Investmen
African leaders met in Ethiopia during the weekend to celebrate the 50th anniversary of their continental alliance and discuss issues such as Chinese investment on the continent as well as the fight a -
TV Receivers in Students Flats大學英語作文
Nowadays an increasing number of students' flats have TV receivers installed in them. TV presents a vivid world in front of tudents. Boys could enjoy sports games at will. Some programs help students r -
私家車的壞處The Disadvantages of Private Cars英語作文
The Disadvantages of Private CarsAs the development of the world, our country’s economy has become more and more better, people’s life standard has become much better, so people have money to amuse. -
英語閱讀:Life is inevitable consequence of physics
A few years back, a remarkable new hypothesis made its way into the scientific zeitgeist — namely, that life is an inevitable consequence of physics. The author of this concept, an associate pro