爱心制作
Posted evil-legend
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了爱心制作相关的知识,希望对你有一定的参考价值。
HTML代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../css/练习.css">
<title>心</title>
</head>
<body>
<div class="name">
<div class="name1"></div>
<div class="name2"></div>
<div class="name3"></div>
<div class="content"></div>
</div>
</body>
</html>
css代码:
*
margin: 0;
padding: 0;
font-size: 0;
.name
width: 100%;
height: 700px;
background-color: black;
.name1,.name2
width: 100px;
height: 50px;
border-radius: 100px 100px 0 0;
background-color: red;
display: inline-block;
position: relative;
left: 45%;
.name1
transform: rotate(-45deg);
margin-top:200px;
.name2
transform: rotate(45deg);
margin-top:200px;
.name3
width: 100px;
height: 100px;
background-color: red;
transform:rotate(-45deg);
position: relative;
top:-25px;
left:48.25%;
.content
margin: 0 auto;
width: 50px;
height: 50px;
border: 3px solid rgb(156, 156, 156);
border-top: 3px solid #00f;
margin-top: 100px;
border-radius: 50%;
animation: flash 2s linear infinite;
@keyframes flash
0%
transform: rotate(0deg);
100%
transform: rotate(360deg);
喜欢的给个支持!!!
以上是关于爱心制作的主要内容,如果未能解决你的问题,请参考以下文章