我只知道可以在表格中加入如下代碼:
bordercolorlight= “#739ed6 ” bordercolordark= “#FFeeee ”
使表格變為立體的。但是想用css規定表格形式,應該如何寫才能實現這個效果呢?
1.代碼如下:
<table style= ‘border-style:outset ‘>
<tr>
<td> sss </td>
</tr>
</table>
inset:
<span width=100% style= “border: inset thick #008000; width:80px; text-align:center; padding:2px 4px 0px 4px; background:#ff3300; color:#FFFFFF “> inset </span>
outset:
<span width=100% style= “border: outset thick #008000; width:80px; text-align:center; padding:2px 4px 0px 4px; background:#ff3300; color:#FFFFFF “> outset </span>
2.代碼如下:
<style>
.tab1 td{border-left:2 solid #fee;
border-top:2 solid #fee;
border-right:2 solid #79d;
border-bottom:2 solid #79d;
background-color:#999
}
.tab2 td{border:2 outset gray; background-color:#fc9
}
</style>
</head>
<body>
<table class=tab1>
<tr>
<td> 用css規定表格形式 </td>
<td> 用css規定表格形式 </td>
</tr>
<tr>
<td> css規定表格形式 </td>
<td> css規定表格形式 </td>
</tr>
</table>
<table class=tab2>
<tr>
<td> 用css規定表格形式 </td>
<td> 用css規定表格形式 </td>
</tr>
<tr>
<td> css規定表格形式 </td>
<td> css規定表格形式 </td>
</tr>
</table>
</body>
我又希望用CSS管理這個表格,或者在重定義一個STYTEL,可以實現我寫的這種效果:
bordercolorlight= “#739ed6 ” bordercolordark= “#FFeeee ”
不知道是否有更詳細的解決方案?
詳解代碼如下:
正立方表格
<table border= “1 ” width= “220 ” bordercolorlight= “#eeeeee ”
bordercolordark= “#000000 ” style= “position: absolute; left: 10; top:
49 ” height= “26 “>
<tr>
<td width= “100% “> 正立方表格 </td>
</tr>
</table>
|
新聞熱點
疑難解答