草莓熊html代码实现
时间: 2023-11-08 17:03:11 浏览: 351
草莓熊的HTML代码如下所示:
```html
<!DOCTYPE html>
<html>
<head>
<title>草莓熊</title>
<style>
.strawberry {
width: 200px;
height: 200px;
background-color: pink;
border-radius: 50%;
position: relative;
}
.ear {
width: 60px;
height: 80px;
background-color: pink;
border-radius: 50%;
position: absolute;
}
.left-ear {
top: -20px;
left: -40px;
}
.right-ear {
top: -20px;
right: -40px;
}
.face {
width: 150px;
height: 150px;
background-color: pink;
border-radius: 50%;
position: absolute;
left: 25px;
top: 25px;
}
.eye {
width: 30px;
height: 30px;
background-color: white;
border-radius: 50%;
position: absolute;
}
.left-eye {
top: 60px;
left: 50px;
}
.right-eye {
top: 60px;
right: 50px;
}
.mouth {
width: 80px;
height: 20px;
background-color: black;
border-radius: 10px;
position: absolute;
top: 100px;
left: 76px;
}
</style>
</head>
<body>
<div class="strawberry">
<div class="ear left-ear"></div>
<div class="ear right-ear"></div>
<div class="face">
<div class="eye left-eye"></div>
<div class="eye right-eye"></div>
<div class="mouth"></div>
</div>
</div>
</body>
</html>
```
阅读全文