您的位置:首页 > Web前端 > CSS

纯CSS实现DIV圆角

2012-05-02 17:27 507 查看
不兼容IE9一下的IE浏览器

<style type="text/css">
body{ background:#eeeeee;}
.yj{
border:solid #cccccc 20px;
border-top:inset #aaaaaa 20px;
background:#dddddd;
border-radius:30px 50px 5px 15px;
padding:2 5px;
}

</style>
<body>

<div class="yj">
fgsfdhs
<br>
sdfg
<br>
sdfg
<br>
ksfgsd
</div>

<input class="yj" type="button" value="我是圆的" />

<input class="yj" type="text" value="我是圆的" />

<li class="yj">heh</li>

<textarea class="yj">sgs</textarea>

</body>

更多参考:http://www.w3cplus.com/content/css3%E7%9A%84%E5%9C%86%E8%A7%92border-radius
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: