首页 > 其他 > 详细

一个div的太极

时间:2018-05-06 11:33:05      阅读:319      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style type="text/css">
body {
background-color:chartreuse;
}
 
#taiji {
width: 0px;
height: 600px;
border-left: 300px solid royalblue;
border-right: 300px solid darkorange;
border-radius: 100%;
}
 
#taiji:before {
content: ‘‘;
display: block;
width: 100px;
height: 100px;
border: 100px solid royalblue;
border-radius: 100%;
background-color:darkorange;
margin-left: -150px;
}
 
#taiji:after {
content: ‘‘;
display: block;
width: 100px;
height: 100px;
border: 100px solid darkorange;
border-radius: 100%;
background-color:royalblue;
margin-left: -150px;
}
</style>
</head>
<body><div id="taiji"></div>
 
</body>
</html>

一个div的太极

原文:https://www.cnblogs.com/dongdongyang/p/8997525.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!