<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
</head>
<body>
<h1>Desafio CSS</h1>
</body>
</html>
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
CSS
格式化
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Lato', sans-serif;
background-color: rgba(10, 43, 48, 0.363);
}
h1 {
font-size: 200px;
text-align: center;
text-transform: uppercase;
background: url(image.jpg);
-webkit-background-clip: text;
color: transparent;
animation: text-background 20s linear infinite;
}
@keyframes text-background {
from { background-position: 0 0 }
to { background-position: 100% 100% }
}
JS
格式化