1.工作中常用的方法 border-radius: 20px;
2.实现1px圆角(不推荐使用,可以多套几层div效果更明显,比较麻烦哦)
<style>
.box{
width: 60px;
height: 20px;
padding: 1px 0;
background-color: #ccc;
}
.cont{
margin: 0 -1px;
height:20px;
background-color: #ccc;
}
</style>
</head>
<body>
<div class="box">
<div class="cont"></div>
</div>
</body>