<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>EU AMO</title>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
</head>
<body>
<h1>Eu amo <span></span></h1>
</body>
</html>
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
CSS
格式化
body
{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(168, 244, 247);
}
h1
{
color: rgb(0, 0, 0);
font-size: 50px;
font-family: 'Press Start 2P', cursive;
}
span::before
{
content: '';
animation: word-swith 3s infinite;
}
@keyframes word-swith
{
0% {content: '💻'}
50%{content: '🍕';}
100%{content: '🎮';}
}
JS
格式化