<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>百度钱包</title>
<style>
.miuse {
width: 300px;
height: 300px;
border: 1px solid #000;
margin: 100px auto;
position: relative;
}
.miuse::before,.miuse::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: red;
left: 0px;
top: 0px;
transition: transform 0.8s;
text-align: center;
line-height: 300px;
}
.miuse::before {
content: "我是正面";
color: white;
}
.miuse::after {
content: "我是反面";
background-color: blue;
}
</style>
</head>
<body>
<div class="miuse">
</div>
</body>
</html>
before和after中,是after盖住了before
最新推荐文章于 2023-07-27 11:20:13 发布