用CSS实现无图片背景圆角效果

<html>

<head>

<title>用css实现无图片背景圆角效果</title>

<meta http-equiv="content-type" content="text/html; charset=gb2312">

<style type="text/css">

div.RoundedCorner{background: rgba(250,240,110,1)}

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

b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background:rgba(250,240,110,1)}

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>

<p>谨订于<br/>

公历贰零一一年八月十五日<br/>

农历贰零一一年八月十五日<br/>

星期五<br/>

新郎 <strong> 郭靖 </strong><br/>

新娘 <strong> 黄蓉 </strong><br/>

<strong> 举行结婚典礼</strong><br/>

席设:龙城丽宫大酒店 三层牡丹厅 <br/>

时间:上午玖时叁拾分<br/>

恭候光临<br/></p>

<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>

</div>

</body>

</html>