+ -
当前位置:首页 → 问答吧 → 纯CSS实现圆角效果

纯CSS实现圆角效果

时间:2010-07-17

来源:互联网

css果然强大,不需要用图片,也可以实现圆角效果
  • <html>
  • <head>
  • <title>纯CSS实现圆角效果</title>
  • <style type="text/CSS">
  • div.RoundedCorner{background: #9bd1fa}
  • b.rtop, b.rbottom{display:block;background: #fff}
  • b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #9bd1fa}
  • b.r1{margin: 0 5px}
  • b.r2{margin: 0 3px}
  • b.r3{margin: 0 2px}
  • b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
  • </style>
  • </head>
  • <body>
  • <div class="RoundedCorner">
  • <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
  • <br>无图片纯CSS实现圆角框<br><br>
  • <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
  • </div>
  • </body>
  • </html>

作者: 柒児   发布时间: 2010-07-17

楼主厉害,没想到还有这个功能。学习了。

作者: qixiaodui   发布时间: 2010-07-25

相关阅读 更多