天天看點

設定表格樣式-細線邊框

<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>