四分之一圆border-radius的用法

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>四分之一圆</title>
<style>
/*画四分之一圆*/
.yuan1{
200px;
height:200px;
border-radius:0 100% 0 100%;
background:#F00;

}
.yuan2{
200px;
height:200px;
border-radius:100% 0 0 0;
background:green;

}
.yuan3{
200px;
height:200px;
border-radius:0 100% 0 0;
background:#234edc;

}
.yuan4{
200px;
height:200px;
border-radius:0 0 100% 0;
background:#F0f;

}
.yuan5{
200px;
height:200px;
border-radius:0 0 0 100%;
background:#Ff0;

}
.yuan6{
100px;
height:100px;
border-radius:100% 100% 0 0;
background:#Ff0;

}
.yuan7{
200px;
height:200px;
border-radius:100% 0 100% 0;
background:#00F;

}
.yuan8{
200px;
height:100px;
border-radius:100px 0 100px 0;
background:#00F;
}
.yuan9{
200px;
height:100px;
border-radius:100px 100px 0 0;
background:#ff6633;
}
</style>
</head>
<body style="background:#000;">
<div class="yuan1"></div>
<div class="yuan2"></div>
<div class="yuan3"></div>
<div class="yuan4"></div>
<div class="yuan5"></div>
<div class="yuan6"></div>
<div class="yuan7"></div>
<div class="yuan8"></div>
<div class="yuan9"></div>
</body>
</html>

原文地址:https://www.cnblogs.com/studyh5/p/7910492.html