當(dāng)前位置:軟件學(xué)堂 > 資訊首頁(yè) > 網(wǎng)絡(luò)編程 > DIV+CSS > table邊框顏色屬性bordercolor

table邊框顏色屬性bordercolor

2012/11/20 13:51:28作者:佚名來(lái)源:網(wǎng)絡(luò)

移動(dòng)端

【實(shí)例介紹】

table邊框顏色屬性bordercolor

bordercolor用于設(shè)置行的邊框顏色。

【基本語(yǔ)法】

<tr bordercolor="邊框的顏色">

【語(yǔ)法介紹】

【實(shí)例代碼】

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>邊框顏色屬性</title> </head>

<body> <table width="80%" border="1" cellpadding="10" cellspacing="0" align="center">   <tr bordercolor="#ff6600">     <td >一世等待,一場(chǎng)空白</td>   </tr>   <tr >     <td>塵緣如夢(mèng),相逢是緣</td>   </tr>   <tr >     <td>紅塵陌上,依舊孑然</td>   </tr> </table> </body> </html>

 

【代碼分析】

在代碼中,加粗部分的代碼標(biāo)記用于設(shè)置表格行的邊框顏色,將第1行的邊框顏色設(shè)置為紅色,如圖所示。

邊框顏色屬性bordercolor運(yùn)行效果

 【素材及源碼下載】

請(qǐng)點(diǎn)擊:邊框顏色屬性bordercolor 下載本實(shí)例相關(guān)素材及源碼

 

標(biāo)簽: table  邊框顏色  屬性