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:
![](http://images.cnblogs.com/cnblogs_com/shylysun/Result.JPG)
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;
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;
相关文章推荐
- How to use outline levels to create a table of contents (TOC) in Word 2003 and in Word 2002
- how to set cornerRadius for only top-left and top-right corner of a UIView?
- How to set up and test a simple OLEDB Linked Server in Microsoft® SQL Server to allow retrieval of d
- How to get and set the drawing order of layers in globe(获取并设置Globe图层的叠加次序:)
- understanding positions and screen resolution, how to properly set position of object?
- Here's an example that shows how to enumerate through the features of a selection set, returning the value of each field in the attribute table except for the geometry colum.
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- How to choose the SIZE and HASHKEYS of hash cluster table?
- How to set up a link betwteen a real Android cell and Ubuntu System by adb
- How to setup a new Organization and Set of Books for a Payables Responsibility
- How to Get First and Last Day of a Month in SQL Server
- How to Calculate the Number of IOPS and Throughput of a Database (文档 ID 2206831.1)
- How To Set Up A USB-Over-IP Server And Client With Ubuntu 10.04
- Linux: Where to set hostname and how to get IP info, as well as how to set DNS
- how to accepte the array of the checkbox in asp and in php
- How to Quickly Create a Copy of a Table using Transact-SQL
- How to inspect who is caller of func and who is the class of instance
- how to execute set of commands in elevated mode of powershell
- How to Add Columns to a DataGrid through Binding and Map Its Cell Values
- 如何设置Java桌面程序界面外观(How to Set the Look and Feel)