<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dia 23</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all">
</head>
<body>
<a href="#">#30diasCSS</a>
</body>
</html>
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
CSS
格式化
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #222;
}
a {
text-decoration: none;
color: white;
font-family: sans-serif;
font-size: 40px;
border: 3px solid white;
padding: 40px 80px;
transition: all 0.3s
}
a:hover {
border: 3px solid #047952;
color: #047952;
animation: shake 0.3s linear 1;
}
@keyframes shake {
33% { transform: rotate(10deg); }
66% { transform: rotate(-10deg); }
100% { transform: rotate(10deg); }
}
JS
格式化