當前位置:首頁 » 表格製作 » html表格怎樣加內框線
擴展閱讀
可以描線條畫畫的軟體 2025-08-01 08:43:07
表格怎樣製作口取紙 2025-08-01 08:20:38

html表格怎樣加內框線

發布時間: 2023-08-16 10:18:07

❶ 在html的表格中,怎麼把表格的邊框設置為實線框具體的代碼是什麼謝謝

<style type="text/css">
<!--
.tableborder {
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
/*以上分別設置的是表格邊框中上右下左的邊框寬度*/
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
/*設置邊框的表現樣式,solid為實線*/
border-top-color: #0000FF;
border-right-color: #0000FF;
border-bottom-color: #0000FF;
border-left-color: #0000FF;
/*設置邊框的顏色*/
}
-->
</style>
<table width="300" height="100" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<td>class="tableborder"是對樣式的調用,寫在table標簽內</td>
<td></td>
</tr>
</table>