您的位置:首页 > 其它

不使用背景图片实现圆角效果

2012-12-03 22:45 721 查看
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>实现圆角效果</title>
<style>
.item{
width: 100px;
margin: 0 auto;
padding: 0;
font: 14px Arial;
font-weight: bold;
}
.item p{
padding: 0 0 2px 0;
margin: 0px;
text-align: center;
background: #cc6;
border: 1px solid #000;
border-top-width: 0px;
}
.item div{
height: 1px;
overflow: hidden;
background: #cc6;
border-left: 1px solid #000;
border-right: 1px solid #000;
}
.item .row1{
margin: 0 5px;
background: #000;
}
.item .row2{
margin: 0 3px;
border: 0 2px;
}
.item .row3{
margin: 0 2px;
}
.item .row4{
margin: 0 1px;
height: 2px;
}
</style>
</head>
<body>
<div class="item">
<div class="row1"></div>
<div class="row2"></div>
<div class="row3"></div>
<div class="row4"></div>
<p>Home</p>
</div>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐