您的位置:首页 > Web前端 > CSS

CSS画太极图

2019-03-22 14:48 120 查看
[code]<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>太极图</title>
<style type="text/css" media="screen">
#a{
width: 300px;
height: 600px;
border: 1px solid black;
background: white;
border-right: 300px solid black;
border-radius: 50%;
}
#a::before{
content: '';
display: block;
/* 300/3 */
width: 100px;
height: 100px;
background: white;
border: 100px solid black;
border-radius: 50%;
margin-left: 150px;
}
#a::after{
content: '';
display: block;
width: 100px;
height: 100px;
background: black;
border: 100px solid white;
border-radius: 50%;
margin-left: 150px;
}
</style>
</head>
<body>
<div id='a'>

</div>
</body>
</html>

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: