开发者

XHTML Column Padding Bug

开发者 https://www.devze.com 2022-12-26 05:59 出处:网络
Try setting the padding of <td> to more than 1px, you can\'t. You can only specify 0 or 1px padding for this td. But why ? It\'s same in both transitional and strict document types.

Try setting the padding of <td> to more than 1px, you can't.

You can only specify 0 or 1px padding for this td. But why ? It's same in both transitional and strict document types.

http://www.pro-开发者_如何学编程turk.net/xhtml_col.html


It is probably that you are not defining the unit for the padding. setting it something like 10px (in chrome at least) works fine.


Maybe because you're specifying the padding as 1 - no units - rather than 1px, 1em, etc.

It's fine to specify 0 without units, as 0 is the same in any unit - but not 1.

0

精彩评论

暂无评论...
验证码 换一张
取 消