<!DOCTYPE HTML>
<html lang-"zh-cn">
<head>
<meta charset-"UTF-8" >
<title>cui</title>
<style>
body{
padding:0;
margin:0;
}
.wrap{
position:relative;
width: 200px;
height: 200px;
border-radius: 50%;
margin:100px auto;
background-color:rgb(161, 18, 42);
}
.wrap .box1,.box2{
width: 50px;
height: 50px;
border-radius:50%;
}
.wrap .box1{
position:absolute;
left:24px;
top:30px;
background:radial-gradient(brown 0%,black 30%,#fff 40%);
}
.wrap .box2{
position:absolute;
left:100px;
top:30px;
background:radial-gradient(brown 0%,black 30%,#fff 40%);
}
.wrap .box3{
position:absolute;
left:30px;
top:130px;
width: 110px;
height: 40px;
border-radius:0 0 65px 65px/ 0 0 65px 65px;
background-color:rgba(254,0,0,.5);
}
</style>
</head>
<body>
<div class="wrap">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
</body>
</html>
css 笑脸(定位使用父相子绝)
最新推荐文章于 2022-05-30 10:47:17 发布