作家
登录

提取自百度有啊的css圆角效果

作者: 来源:www.28hudong.com 2013-03-30 02:41:18 阅读 我要评论

复制代码 代码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>百度有啊css圆角方案</title> <style> .box1{background:url('http://www.jb51.net/upload/20090330140617327.gif') repeat-x #1d6cb7;margin-top:1em;position:relative;zoom:1;width:778px;} .box1 .tl,.box1 .tr,.box1 .bl,.box1 .br {width:5px;height:5px;position:absolute;background:url('http://www.jb51.net/upload/20090330140618989.gif') no-repeat;overflow:hidden; } .box1 .cc{height:40px; padding:5px;} .box1 .tl {left:0;top:0;} .box1 .tr {right:0;top:0;background-position:0 -5px;} .box1 .bl {left:0;bottom:0;background-position:0 -10px;} .box1 .br {right:0;bottom:0;background-position:0 -15px;} .box2{border:1px solid #84cedd;margin-bottom:.8em;position:relative;zoom:1;width:778px;} .box2 .tl,.box2 .tr,.box2 .bl,.box2 .br {width:6px;height:6px;position:absolute;background:url('http://www.jb51.net/upload/20090330140618283.gif') no-repeat;overflow:hidden;} .box2 .cc{height:40px; padding:5px;} .box2 .tl {left:-1px;top:-1px;} .box2 .tr {right:-1px;top:-1px;background-position:0 -6px;} .box2 .bl {left:-1px;bottom:-1px;background-position:0 -12px;} .box2 .br {right:-1px;bottom:-1px;background-position:0 -18px;} .box3{position:relative;zoom:1;padding:1em 1.5em;margin:.5em 0 1em 0; background:#f1f6de} .box3 .tl,.box3 .tr,.box3 .bl,.box3 .br {width:5px;height:5px;position:absolute;background:url('http://www.jb51.net/upload/20090330140618807.gif') no-repeat;overflow:hidden;} .box3 .cc{height:40px; padding:5px;} .box3 .tl {left:0;top:0;} .box3 .tr {right:0;top:0;background-position:0 -5px;} .box3 .bl {left:0;bottom:0;_bottom:-1px;background-position:0 -10px;} .box3 .br {right:0;bottom:0;_bottom:-1px;background-position:0 -15px;} </style> </head> <body> <div class="box1"> <span class="tl"></span><span class="tr"></span> <div class="cc"> <p>圆角一</p> </div> <span class="bl"></span><span class="br"></span> </div> <p></p> <div class="box2"> <span class="tl"></span><span class="tr"></span> <div class="cc"> <p>圆角二</p> </div> <span class="bl"></span><span class="br"></span> </div> <p></p> <div class="box3"> <span class="tl"></span><span class="tr"></span> <div class="cc"> <p>圆角三</p> </div> <span class="bl"></span><span class="br"></span> </div> <br/><br/>更多代码请访问 <a href="http://www.jb51.net/" target="_blank">脚本之家</a> </body> </html> 百度有啊css圆角方案 .box1{background:url('http://www.jb51.net/upload/20090330140617327.gif') repeat-x #1d6cb7;margin-top:1em;position:relative;zoom:1;width:778px;} .box1 .tl,.box1 .tr,.box1 .bl,.box1 .br {width:5px;height:5px;position:absolute;background:url('http://www.jb51.net/upload/20090330140618989.gif') no-repeat;overflow:hidden; } .box1 .cc{height:40px; padding:5px;} .box1 .tl {left:0;top:0;} .box1 .tr {right:0;top:0;background-position:0 -5px;} .box1 .bl {left:0;bottom:0;background-position:0 -10px;} .box1 .br {right:0;bottom:0;background-position:0 -15px;} .box2{border:1px solid #84cedd;margin-bottom:.8em;position:relative;zoom:1;width:778px;} .box2 .tl,.box2 .tr,.box2 .bl,.box2 .br {width:6px;height:6px;position:absolute;background:url('http://www.jb51.net/upload/20090330140618283.gif') no-repeat;overflow:hidden;} .box2 .cc{height:40px; padding:5px;} .box2 .tl {left:-1px;top:-1px;} .box2 .tr {right:-1px;top:-1px;background-position:0 -6px;} .box2 .bl {left:-1px;bottom:-1px;background-position:0 -12px;} .box2 .br {right:-1px;bottom:-1px;background-position:0 -18px;} .box3{position:relative;zoom:1;padding:1em 1.5em;margin:.5em 0 1em 0; background:#f1f6de} .box3 .tl,.box3 .tr,.box3 .bl,.box3 .br {width:5px;height:5px;position:absolute;background:url('http://www.jb51.net/upload/20090330140618807.gif') no-repeat;overflow:hidden;} .box3 .cc{height:40px; padding:5px;} .box3 .tl {left:0;top:0;} .box3 .tr {right:0;top:0;background-position:0 -5px;} .box3 .bl {left:0;bottom:0;_bottom:-1px;background-position:0 -10px;} .box3 .br {right:0;bottom:0;_bottom:-1px;background-position:0 -15px;} 圆角一 圆角二 圆角三 更多代码请访问 脚本之家 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

  推荐阅读

  js 浏览器版本及版本号判断函数2009年

js判断浏览器版本及版本号 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]>>>详细阅读


本文标题:提取自百度有啊的css圆角效果

地址:http://www.17bianji.com/kaifa2/JS/28874.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)