码迷,mamicode.com
首页 > 其他好文 > 详细

一个div的太极

时间:2018-05-06 12:12:38      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:scale   char   nbsp   col   ora   view   initial   css   orange   

<!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的太极

标签:scale   char   nbsp   col   ora   view   initial   css   orange   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!