点击查看html编辑器说明文档

第二十三天edit icon

|
|
Fork(复制)
|
|
作者:
lynn-ssk
提交反馈
嵌入
设置
下载
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ...
展开
</head>
<body>
            
            <!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>
        
</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
格式化
            
            
        
预览
控制台