using table as a layout
Possible Duplicate:
Why not use tables for layout in HTML?
i know that using tables as layout is a big problem..Why don't professional web designers use tables for layout anymore? and what are the alternatives in CSS that i can use and will be the best alternative to tables??
1) as soon as a browser sees an opening table tag, it will stop rendering until it sees the closing tag, since it has no way of even guessing what the table structure will look like. Because of that, tables will dramatically increase the wait time between when the user starts the request, and when they can actually use your page.
2) tables require 3 nested tags to define a cell, which is a hell of a lot of noise in an already incredibly verbose language (xml)
3) semantically, a table is for tabular data. using it for layout means your html doesn't make sense when you read it.
Discussed here - Why not use tables for layout in HTML?
CSS doesn't provide 'alternatives' to tables. It is used to style HTML elements including tables.
尝试学习使用div标签,并使用CSS给它的样式..它在外观上更有效果
链接地址: http://www.djcxy.com/p/15490.html上一篇: 我应该何时使用表格,div或uls?
下一篇: 使用表格作为布局