table樣式-行間距離


<head>
<style type="text/css">
table {
display: table;
    border-collapse: separate;
border-spacing:0px 2px;
}
table tr {background-color:#f7f7f7; }
table tr:first-child{background-color:#FFFFFF; }


table tr:hover {background: #e5f8ef;}
table tr:first-child:hover{background-color:#FFFFFF; }
</style>


</head>


<body>
<table width="700">
<tr>
    <th>&nbsp;</th>
    <th>&nbsp;</th>
    <th>&nbsp;</th>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>


</body>
</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章