天天看点

设置表格样式-细线边框

<style type="text/css">

.tab1{background:red;}

.tab1 td{background:#fff;}

</style>

定义上面的样式,然后在页面中的表格应用此样式会得到细线的边框表格,如红色字体部分:

<TABLE cellSpacing="1" cellPadding="0" width="100%" [color=darkred]class="tab1"[/color] >

<style type="text/css">

table { background-color:#cccccc; }

tr { background-color:#ffff7f; }

td { height:24px; padding:2px; }

</style>

style="cursor: hand" 当鼠标移动到的时候变成手指,类似<a>链接</a>