當前位置:編程學習大全網 - 網站源碼 - 在html的表格中,怎麽把表格的邊框設置為實線框?具體的代碼是什麽?謝謝

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

  • 上一篇:考生號是多少?
  • 下一篇:集合源代碼
  • copyright 2024編程學習大全網