導航:首頁 > 萬維百科 > 網頁設計表格的邊框顏色怎麼設置

網頁設計表格的邊框顏色怎麼設置

發布時間:2020-09-01 11:02:32

1、html 表格上下左右邊框顏色各不同,怎麼設置?

html是一種網頁代碼,即在網頁中顯示的格式,當需要表格左右顯示不同的顏色時,可以分開設置,如:

border-top:1px solid red;
border-right:1px solid blue;
border-bottom:1px solid orange;
border-left:1px solid pink。

2、怎麼設置table所有邊框的顏色?

<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#a1a1a1" id="table2">---此處設置外邊框顏色
<tr >
<td bgcolor="#ffffff" colspan="6" height="25" align=center><font color=#ea5e01 size=3><strong>房屋基本信息</strong></font></td>
</tr>
<tr>
<td bgcolor="#E6E6FA" height="25" width="13%" align=center>房屋狀態</td>
<td bgcolor="#ffffff" width="20%" valign=center >---此處設置單元格邊框顏色
$TYPE$</td>
<td bgcolor="#E6E6FA" width="13%" align=center >房屋類別</td>此處設置單元下邊框顏色
<td bgcolor="#ffffff" width="20%" valign=center >$FWLB$</td>
<td bgcolor="#E6E6FA" width="13%" align=center>所在地區</td>
<td bgcolor="#ffffff" width="20%" valign=center >$XS$</td>
</tr></table>

3、html中表格的邊框顏色怎麼設置

用style設置
比如:td{
width:100px;
height:30px;
border:1px solid red; //此行設置的是邊框大小 ,顯示樣式,顏色
}
http://www.w3school.com.cn/tags/tag_table.asp

4、在html中 怎樣改變表格邊框線的顏色?

在html中 怎樣改變表格邊框線的顏色可以通過設置border的值來實現。

例如:

border: 5px solid blue 表示邊框顏色是綠色;

border: 5px solid red 表示邊框顏色是紅色;


(4)網頁設計表格的邊框顏色怎麼設置擴展資料

border的用法介紹

border 簡寫屬性在一個聲明設置所有的邊框屬性。

可以按順序設置如下屬性:

border-width

border-style

border-color

如果不設置其中的某個值,也不會出問題,比如 border:solid #ff0000; 也是允許的。




5、html怎麼設置表格的邊框顏色

bordercolor="red"
設置bordercolor屬性的值即可調整顏色

6、在dw中用表格設計網頁時怎麼設置表格上邊框的寬度和顏色?

<td style="border:2px solid #CCCCCC"></td>


2px 是寬度 ,solid 是邊框樣式, #CCCCC是邊框顏色。這些都是可以自己修改的

7、怎麼修改HTML表格內邊框顏色

代碼如下:

<table border="5"align="center"height="100"width="400"bordercolor="red">
<tr>
<td>單元格1</td>
<td>單元格2</td>
</tr>
<tr>
<td>單元格3</td>
<td>單元格4</td>
</tr>
</table>

說明:通過設置上面代碼中的bordercolor屬性的值即可調整顏色

8、網頁表格邊框顏色設置的問題

第一個table標簽裡面的bordercolor=#000000,是指黑色,沒有錯。

第二個table標簽裡面:borderColorDark 左上邊框的顏色,borderColorLight 的右下邊框的顏色
,屬性名borderColorDark 和borderColorLight要區分大小寫,僅ie系列支持,所以不建議你使用。最好用Css裡面的屬性,如border-top,border-left。

 

下面是我的實例:

 </table><table width="300" height="60" align="center" border="2" borderColorLight="#ffff00" borderColorDark="#43a8ed">
    <tr>
     <th>電腦組成1i</th>
     <td>電腦組成2i</td>
     <td>電腦組成3i</td>
     <td>電腦組成4i</td>
     <td>電腦組成5i</td>
     <td>電腦組成6i</td>
    </tr>
    <tr>
     <th>電腦組成1i</th>
     <td>電腦組成2i</td>
     <td>電腦組成3i</td>
     <td>電腦組成4i</td>
     <td>電腦組成5i</td>
     <td>電腦組成6i</td>
    </tr>
   </table>

9、網頁設計怎麼把表格的邊框顏色改變

<style type="text/css">
.tablecss01{ border-left:1px solid red; border-top:1px solid red; line-height:30px; text-align:center;}
.tablecss01 td{ border-right:1px solid red; border-bottom:1px solid red;}
</style>
 <table border="0" cellpadding="0" cellspacing="0" width="500" class="tablecss01">
  <tr>
   <td>1</td>
   <td>1</td>
   <td>1</td>
  </tr>
  <tr>
   <td>2</td>
   <td>2</td>
   <td>2</td>
  </tr>
 </table>

與網頁設計表格的邊框顏色怎麼設置相關的知識