html table of,TABLE - HTML Tables

本文探讨了早期Netscape浏览器对ALIGN属性的支持问题,建议使用CENTER标签包裹表格以实现居中。同时,指出避免使用像素宽度的表格,推荐使用百分比宽度,以提高页面响应式。此外,还提到了表格在不同浏览器和小屏幕设备上的显示问题,以及如何处理空单元格的样式。对于不支持表格的浏览器,表格用于布局可能导致显示混乱,因此建议谨慎使用。
摘要由CSDN通过智能技术生成

Some browsers (in particular, the 1.x, 2.x and 3.x versions of Netscape) do not

honor the ALIGN attribute on a table with a value of CENTER. For these browsers, enclose

the entire table in a CENTER or

tag.

The downside of the above workaround is that on browsers that do

not support tables, but do support centered text,

the contents of the table will be rendered as centered. In

some cases, this can be "fixed" by enclosing the contents of the

table cell with something like

.

Avoid using pixel widths for a table. They force that the browser

window is sized to a particular width to see the entire table, which

is not always desirable, let alone possible. However,

the first version of Internet Explorer does not support the WIDTH

attribute with a percentage value.

Tables are often used for page layout purposes. This is not

recommended, since it totally screws up the display for browsers which

do not support tables, and it also often gives awkward results on small

screens.

Earlier drafts of HTML 3.2 allowed the BORDER attribute to be

given without value (and then the value defaulted to 1). The final

version only permits BORDER=n.

The HTML 3.0 draft did not include the values for the

BORDER attribute, so browsers which use this table model might draw

a border around your table when you use BORDER=0.

An empty table cell is typically drawn differently than a non-empty

cell. If you need a table cell with non content, but with the same

appareance as a non-empty cell, put " " in the cell.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值