只有一个参数,要想它生效必须为其指明颜色:background border都可以
border-radius:25px
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<style>
div
{
text-align:center;
border:2px solid #ccc;
padding:10px 40px;
background:#dddddd;
width:350px;
border-radius:25px;
-moz-border-radius:25px; /* 老的 Firefox */
}
</style>
</head>
<body>
<div>border-radius 属性允许您向元素添加圆角。</div>
</body>
</html>