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

太极图的制作

时间:2019-08-28 22:37:33      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:显示   ack   style   color   after   ota   head   line   img   

代码:

 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.yy {
width: 200px;
height: 99px;
border: 1px solid #000;
border-bottom-width: 100px;
border-radius:100px;
position:relative;
cursor: pointer;/*抓手*/
transition: all 1s linear; /*过渡*/
}
.yy:hover{
transform:rotate(360deg);
}
.yy:before {
content: "";
position: absolute;
top:50px;
left:0;
width: 20px;
height: 20px;
border:40px solid #000;
border-radius: 50px;
background: #fff;
}
.yy:after {
content: "";
width: 20px;
height: 20px;
position: absolute;
top: 50px;
right: 0;
border: 40px solid #fff;
border-radius: 50px;
background: #000;
}
</style>
</head>
<body>
<div class="yy"></div>
</body>
</html>

 

显示效果:

 

技术图片

(ps:会动的太极图)

 

太极图的制作

标签:显示   ack   style   color   after   ota   head   line   img   

原文地址:https://www.cnblogs.com/yanyanstyle/p/11426823.html

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