网页制作学习:三种表格效果
时间:2007-02-17 来源:PHP爱好者
li实现表格的效果 <style>
ul{display:inline;}
li{
list-style-type:none;
float:left;
width:190px;
text-align:left;
text-indent:4px;
border:#3A8B3E 1px solid;
}
</style>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
<li>G</li>
<li>H</li>
</ul> 效果如下图: css实现圆角表格的效果 <style type="text/css">
div#nifty{ margin: 0 10%;background: #9BD1FA}
p {padding:10px}
div.rtop, div.rbottom{display:block;background: #FFF}
div.rtop div, div.rbottom div{display:block;overflow: hidden; background: #9BD1FA}
div.r1{margin: 0 5px}
div.r2{margin: 0 3px}
div.r3{margin: 0 2px}
div.rtop div.r4, div.rbottom div.r4{margin: 0 1px;/style>
<div id="nifty">
<div class="rtop"><div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div></div>
<p>Junstudio Blog</p>
<p>css实现圆角表格的效果</p>
<div class="rtop"><div class="r4"></div><div class="r3"></div><div class="r2"></div><div class="r1"></div></div>
</div> 效果如下图: TABLE实现圆角表格的效果 <table cellpadding="0" cellspacing="0" border="0" width="282" align="center">
<tr style="">
<td rowspan="4" width="1"></td>
<td rowspan="3" width="1"></td>
<td rowspan="2" width="1"></td>
<td width="2"></td>
<td bgcolor="#43B5C9"></td>
<td width="2"></td>
<td rowspan="2" width="1"></td>
<td rowspan="3" width="1"></td>
<td rowspan="4" width="1"></td>
</tr>
<tr style="">
<td bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
</tr>
<tr style="">
<td bgcolor="#43B5C9"></td>
<td colspan="3" bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
</tr>
<tr style="">
<td bgcolor="#43B5C9"></td>
<td colspan=5 bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
</tr>
</table>
<table width="282" style="" border="0" cellpadding="0" cellspacing="0" bgcolor="#43B5C9" align="center">
<tr>
<td>
<p>Junstudio Blog</p>
<p>TABLE实现圆角表格的效果</p>
</td>
</tr>
</table> 效果如下图:
php爱好者站 http://www.phpfans.net 文章|教程|下载|源码|论坛.
ul{display:inline;}
li{
list-style-type:none;
float:left;
width:190px;
text-align:left;
text-indent:4px;
border:#3A8B3E 1px solid;
}
</style>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
<li>G</li>
<li>H</li>
</ul> 效果如下图: css实现圆角表格的效果 <style type="text/css">
div#nifty{ margin: 0 10%;background: #9BD1FA}
p {padding:10px}
div.rtop, div.rbottom{display:block;background: #FFF}
div.rtop div, div.rbottom div{display:block;overflow: hidden; background: #9BD1FA}
div.r1{margin: 0 5px}
div.r2{margin: 0 3px}
div.r3{margin: 0 2px}
div.rtop div.r4, div.rbottom div.r4{margin: 0 1px;/style>
<div id="nifty">
<div class="rtop"><div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div></div>
<p>Junstudio Blog</p>
<p>css实现圆角表格的效果</p>
<div class="rtop"><div class="r4"></div><div class="r3"></div><div class="r2"></div><div class="r1"></div></div>
</div> 效果如下图: TABLE实现圆角表格的效果 <table cellpadding="0" cellspacing="0" border="0" width="282" align="center">
<tr style="">
<td rowspan="4" width="1"></td>
<td rowspan="3" width="1"></td>
<td rowspan="2" width="1"></td>
<td width="2"></td>
<td bgcolor="#43B5C9"></td>
<td width="2"></td>
<td rowspan="2" width="1"></td>
<td rowspan="3" width="1"></td>
<td rowspan="4" width="1"></td>
</tr>
<tr style="">
<td bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
</tr>
<tr style="">
<td bgcolor="#43B5C9"></td>
<td colspan="3" bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
</tr>
<tr style="">
<td bgcolor="#43B5C9"></td>
<td colspan=5 bgcolor="#43B5C9"></td>
<td bgcolor="#43B5C9"></td>
</tr>
</table>
<table width="282" style="" border="0" cellpadding="0" cellspacing="0" bgcolor="#43B5C9" align="center">
<tr>
<td>
<p>Junstudio Blog</p>
<p>TABLE实现圆角表格的效果</p>
</td>
</tr>
</table> 效果如下图:
php爱好者站 http://www.phpfans.net 文章|教程|下载|源码|论坛.
相关阅读 更多 +