您的位置:首页 > 其它

How to set CellSpacing and CellPadding attributes of Table

2006-11-18 19:34 459 查看
Table tags has some attributes like CellSpacing and CellPadding ,but you can't set it in css directly.If you are using HTML editor like FrontPage,DW,or VS,you can't find these attributes.

To set these,you can enter this code in your css file:

table.dark
<table class="dark">
<tr>
<td>Test</td>
</tr>
</table>Result:



Thats right,
border-collapse:collapse;
thits sentence means tables cellspacing and cellpadding equals 0.
You can also select this value:border-collapse:separate;In this way,cellspacing and cellpadding not equals 0 then.
Thats all;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐