利用边框书写风车案例
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.circle2 {
width: 150px;
height: 150px;
border: 1px solid red;
border-radius: 100% 0 100% 0;
background-image: url(./ditu.jpg);
display: inline-block;
}
.circle1 {
width: 150px;
height: 150px;
border: 1px solid red;
border-radius: 0 100% 0 100%;
background-image: url(./ditu.jpg);
display: inline-block;
}
.bangzi {
width: 5px;
height: 300px;
position: absolute;
top: 158px;
left: 159px;
background-color: black;
}
.obox {
width: 310px;
transition: all 10s;
}
.obox:hover {
transform: rotate(180000deg);
}
</style>
</head>
<body>
<div class="box"></div>
<div class="bangzi"></div>
<div class="obox">
<div class="circle1"></div>
<div class="circle2"></div>
<br>
<div class="circle2"></div>
<div class="circle1"></div>
</div>
</body>
</html>