CSS使用图片实现边框圆角,用两张图片作为背景,两张作为修饰,形成大圆角的效果,圆角的大小请根据自己的需要修改,修改过程中要对应修改CSS的代码,仅供参考。 演示: <!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> <title>另一CSS圆角框的实现方法</title> <style> .rndbox { background: #C6D9EA; width: 300px; font: 11px Verdana, Arial, Helvetica, sans-serif; color: #000033; } .rndtop { background: url(/uploads/allimg/1104/topright.gif) no-repeat right top; } .rndbottom { background: url(/uploads/allimg/1104/bottomright.gif) no-repeat right top; } .rndbox p { margin: 0 8px; } </style> </head> <body> <div class="rndbox"> <div class="rndtop"><img src="/uploads/allimg/1104/topleft.gif" alt="" width="30" height="30" /></div> <p>God gives answers in 3 ways: He says yes and gives U what U want. He says no and gives U something better. He says wait and gives U the best. 上帝用三种方式作答:他点头给你想要的;他摇头给你更好的;他让你等,就给你最棒的,烈火学院 Liehuo.Net。</p> <div class="rndbottom"><img src="/uploads/allimg/1104/bottomleft.gif" alt="" width="30" height="30" /></div> </div> </body> </html><br /><center>如不能显示效果,请按Ctrl+F5刷新本页,更多网页代码:<a href='http://www.veryhuo.com/' target='_blank'>http://www.veryhuo.com/</a></center>提示:可修改后代码再运行! 文章导航 左浮动、右浮动的对齐方法,CSS 代码CSS 圆角边框,无图、纯 CSS 实现的代码