html玫瑰花表白代码
时间: 2023-08-29 10:10:07 浏览: 59
以下是一个简单的 HTML 玫瑰花表白代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>玫瑰花表白</title>
<style>
.rose {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #f00;
position: relative;
}
.rose:before {
content: "";
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #f00;
position: absolute;
top: -50px;
left: 50px;
transform: rotate(-45deg);
}
.rose:after {
content: "";
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #f00;
position: absolute;
top: -50px;
left: -50px;
transform: rotate(45deg);
}
</style>
</head>
<body>
<div class="rose"></div>
<p>亲爱的,这朵玫瑰花送给你,代表我对你的爱和感激。</p>
</body>
</html>
```
这个代码会在页面上显示一朵用红色圆圈组成的玫瑰花,并在下方显示一段表白的话。你可以将其中的文字和样式修改为符合自己心意的表白内容。