一般我们实现圆角都会使用图片修饰,CSS2.0暂不支持圆角表格(说错不要找我,期待CSS3)
用图来做不是懒人想要的,本文来用纯CSS实现圆角,先发代码:
<style>
body{font: 12px georgia, "times new roman", times, serif; text-align:center}
.wrap{background:#ffc20e;width:200px; margin:0 auto}
b{display:block;height:1px;overflow:hidden;background:#ffc20e;}
.laytop,.laybottom{background-color:#fff}
.t1{margin:0 5px;}
.t2{margin:0 3px}
.t3{margin:0 2px}
.t4{margin:0 1px;height:2px;}
</style>
<div class="wrap">
<div class="laytop">
<b class="t1"></b>
<b class="t2"></b>
<b class="t3"></b>
<b class="t4"></b>
</div>
<p>www.jrgz2008.com收集整理</p>
<div class="laybottom">
<b class="t4"></b>
<b class="t3"></b>
<b class="t2"></b>
<b class="t1"></b>
</div>
</div>
[ 复制代码到剪贴板 ] [ 运行代码 ]body{font: 12px georgia, "times new roman", times, serif; text-align:center}
.wrap{background:#ffc20e;width:200px; margin:0 auto}
b{display:block;height:1px;overflow:hidden;background:#ffc20e;}
.laytop,.laybottom{background-color:#fff}
.t1{margin:0 5px;}
.t2{margin:0 3px}
.t3{margin:0 2px}
.t4{margin:0 1px;height:2px;}
</style>
<div class="wrap">
<div class="laytop">
<b class="t1"></b>
<b class="t2"></b>
<b class="t3"></b>
<b class="t4"></b>
</div>
<p>www.jrgz2008.com收集整理</p>
<div class="laybottom">
<b class="t4"></b>
<b class="t3"></b>
<b class="t2"></b>
<b class="t1"></b>
</div>
</div>
思路:wrap分为上laytop 中<p> 下laybottom三部分,期中laytop、laybottom背景色与BODY相同

在laytop用了四个<b>从短到长排下来,laybottom也是一样,在密度高时角度很接近圆弧,给出左上角放大示意图

已通过IE6 IE7 FF测试