純css實現圓角


流傳很廣的一個例子。
<style type="text/css">
div.roundedcorner{background: #3a6ea5; width: 200px; color:white}
b.r   {display:block;background: #fff}
b.r b {display:block;height: 1px;overflow: hidden; background: #3a6ea5}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.r b.r4{margin: 0 1px;height: 2px}
</style>
<div class="roundedcorner">
   <b class="r"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
   <div style="padding-left:14px;height:100px">
       Your web, your choise
   </div>
   <b class="r"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>
本文來源於網絡小築 http://www.iwebtrados.com.cn/ , 原文地址:http://www.iwebtrados.com.cn/post/189.html

 

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章