效果
代码
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-compatible" content="ie=edge">
<title>特效按钮</title>
<style>
*{
margin: 0;
padding: 0;
}
html,body{
width: 100%;
height: 100vh;
background: #282c34;
display: flex;
justify-content: center;
align-content: center;
}
.btn-box{
width: 800px;
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
}
.box{
position: relative;
width: 250px;
height: 125px;