實(shí)心圓設(shè)置參數(shù)
<!doctype?html> <html> <head> <meta?charset="utf-8"> <title>border-radius</title> <style?type="text/css"> div.circle{ ????height:100px;/*與width設(shè)置一致*/ ????width:100px; ????background:#9da; ????border-radius:100px;/*四個(gè)圓角值都設(shè)置為寬度或高度值的一半*/ ????} /*任務(wù)部分*/??? div.semi-circle{? ????height:100px; ????width:50px; ????background:#9da; ????border-radius:?; ????} ??? </style> </head> <body> <div?class="circle"> </div> <br/> <!--任務(wù)部分--> <div?class="semi-circle"> </div> </body> </html>
實(shí)心圓設(shè)置為寬度高度一樣的值也是可以的呢~~~
2015-01-30
就是啊,值只要超過(guò)50都是實(shí)心圓啊,可能寬高給限制了