好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

div+css无图片实现圆角矩形_html/css_WEB-ITnose

核心提示:在做页面的时候,很多时候会用圆角矩形来妆点一下,但如果用图片的话,即要用到图片又要用到大量的代码,势必增加了页面的重量....

在页面的时候刚好要用到圆角矩形,于是写了以下方法,分享一下

以下为引用的内容:

div+css无图片实现圆角矩形

.RoundedCorner{background:url(images/loginBg2.gif) 0 0 repeat-x;}

b.rtop, b.rbottom{display:block;background:#ffffff;}

b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden;}

b.r1{margin: 0 3px;border-left:1px #DBDBDB solid;border-right:1px #DBDBDB solid;background: #DBDBDB;}

b.r2{margin: 0 2px;border-left:1px #DBDBDB solid;border-right:1px #DBDBDB solid;background:url(images/loginBg2.gif) 0 -3px repeat-x;}

b.r3{margin: 0 1px;border-left:1px #DBDBDB solid;border-right:1px #DBDBDB solid;background:url(images/loginBg2.gif) 0 -2px repeat-x;}

.content{border-left:1px #DBDBDB solid;border-right:1px #DBDBDB solid;}

b.r8{margin: 0 3px;border-left:1px #DBDBDB solid;border-right:1px #DBDBDB solid;background: #DBDBDB;}

b.r7{margin: 0 2px;border-left:1px #DBDBDB solid;border-right:1px #DBDBDB solid;}

b.r6{margin: 0 1px;border-left:1px #DBDBDB solid;border-right:1px #DBDBDB solid;}

-->

内容...

查看更多关于div+css无图片实现圆角矩形_html/css_WEB-ITnose的详细内容...

  阅读:34次