帮我写一段html代码,生成一朵玫瑰花
时间: 2023-03-31 07:02:43 浏览: 127
canvas生成一朵玫瑰花html代码.pdf
好的,以下是生成一朵玫瑰花的 HTML 代码:
```
<!DOCTYPE html>
<html>
<head>
<title>玫瑰花</title>
<style>
.rose {
width: ;
height: ;
border-top: 50px solid #ff69b4;
border-right: 50px solid transparent;
transform: rotate(45deg);
position: relative;
top: 50px;
left: 50px;
}
.rose:before {
content: "";
width: 50px;
height: 50px;
background: #ff69b4;
border-radius: 50%;
position: absolute;
top: -25px;
left: -25px;
}
.rose:after {
content: "";
width: 50px;
height: 50px;
background: #ff69b4;
border-radius: 50%;
position: absolute;
top: -25px;
left: 25px;
}
</style>
</head>
<body>
<div class="rose"></div>
</body>
</html>
```
阅读全文