<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br /> <html xmlns="http://www.w3.org/1999/xhtml"> <br /> <head> <br /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <br /> <title>百度有啊css圆角方案</title> <br /> <style> <br /> .box1{background:url('http://www.1079.com.cn/41/dome1/bg1.gif') repeat-x #1d6cb7;margin-top:1em;position:relative;zoom:1;width:778px;} <br /> .box1 .tl,.box1 .tr,.box1 .bl,.box1 .br {width:5px;height:5px;position:absolute;background:url('http://www.1079.com.cn/41/dome1/bg3.gif') no-repeat;overflow:hidden; } <br /> .box1 .cc{height:40px; padding:5px;} <br /> .box1 .tl {left:0;top:0;} <br /> .box1 .tr {right:0;top:0;background-position:0 -5px;} <br /> .box1 .bl {left:0;bottom:0;background-position:0 -10px;} <br /> .box1 .br {right:0;bottom:0;background-position:0 -15px;} <br /> .box2{border:1px solid #84cedd;margin-bottom:.8em;position:relative;zoom:1;width:778px;} <br /> .box2 .tl,.box2 .tr,.box2 .bl,.box2 .br {width:6px;height:6px;position:absolute;background:url('http://www.1079.com.cn/41/dome1/bg_co1.gif') no-repeat;overflow:hidden;} <br /> .box2 .cc{height:40px; padding:5px;} <br /> .box2 .tl {left:-1px;top:-1px;} <br /> .box2 .tr {right:-1px;top:-1px;background-position:0 -6px;} <br /> .box2 .bl {left:-1px;bottom:-1px;background-position:0 -12px;} <br /> .box2 .br {right:-1px;bottom:-1px;background-position:0 -18px;} <br /> .box3{position:relative;zoom:1;padding:1em 1.5em;margin:.5em 0 1em 0; background:#f1f6de} <br /> .box3 .tl,.box3 .tr,.box3 .bl,.box3 .br {width:5px;height:5px;position:absolute;background:url('http://www.1079.com.cn/41/dome1/bg_co2.gif') no-repeat;overflow:hidden;} <br /> .box3 .cc{height:40px; padding:5px;} <br /> .box3 .tl {left:0;top:0;} <br /> .box3 .tr {right:0;top:0;background-position:0 -5px;} <br /> .box3 .bl {left:0;bottom:0;_bottom:-1px;background-position:0 -10px;} <br /> .box3 .br {right:0;bottom:0;_bottom:-1px;background-position:0 -15px;} <br /> </style> <br /> </head> <br /> <body> <br /> <div class="box1"> <br /> <span class="tl"></span><span class="tr"></span> <br /> <div class="cc"> <br /> <p>圆角一</p> <br /> </div> <br /> <span class="bl"></span><span class="br"></span> <br /> </div> <br /> <p></p> <br /> <div class="box2"> <br /> <span class="tl"></span><span class="tr"></span> <br /> <div class="cc"> <br /> <p>圆角二</p> <br /> </div> <br /> <span class="bl"></span><span class="br"></span> <br /> </div> <br /> <p></p> <br /> <div class="box3"> <br /> <span class="tl"></span><span class="tr"></span> <br /> <div class="cc"> <br /> <p>圆角三</p> <br /> </div> <br /> <span class="bl"></span><span class="br"></span> <br /> </div> <br /> </body> <br /> </html> <br />