<button class="btn">按钮</button>
<button class="btn">按钮</button>
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
CSS
格式化
body {
font-family: sans-serif;
background: rgb(214, 214, 214);
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.btn {
min-width: 150px;
padding: 15px 10px;
margin: 20px;
background: rgb(214, 214, 214);
border: none;
border-radius: 25px;
color: rgb(50, 207, 207);
font-size: 15px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
box-shadow: -7px -7px 20px 0 rgba(255, 255, 255, 0.7),
7px 7px 20px 0 rgba(0, 0, 0, 0.2);
}
.btn:hover {
box-shadow: inset -7px -7px 20px 0 rgba(255, 255, 255, 0.7),
inset 7px 7px 20px 0 rgba(0, 0, 0, 0.2);
}
JS
格式化