立体效果,表格我只知道可以在表格中加入如下代码: 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>
立体效果,表格
|