圆角边框border-radius 四个角同时设置
border-top-left-radius: ;左上角
border-top-right-radius: ;右上角
border-bottom-left-radius: ;左下角
border-bottom-right-radius: ;右下角
每个属性的取值有:水平值 垂直值 水平方向的值决定了距离左或右的距离 垂直方向的决定了上或者下的距离
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>首页</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
.box{
width: 600px;
height: 600px;
border: 5px solid black;
margin: 100px auto;
border-top-left-radius: 100px 200px;
border-bottom-right-radius: 100px;
}
</style>
</head>
<body>
<div class="box">
</div>
</body>
</html>