<style>
.wrapper{
width: 500px;
height: 500px;
position: absolute;
}
.first{
width: 300px;
height: 300px;
background-color:red;
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
}
.second{
width: 300px;
height: 300px;
background-color:red;
position: absolute;
top: 0;
right: 0;
border-radius: 50%;
}
.thrid{
width: 300px;
height: 300px;
background-color:red;
transform: translate(100px,100px) rotate(45deg);
}
</style>
</head>
<body>
<div class="wrapper">
<div class="first"></div>
<div class="second"></div>
<div class="thrid"></div>
</div>
用css里的定位,旋转制作一个简单的爱心
最新推荐文章于 2024-11-04 14:35:19 发布