<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
}
.big{
width: 1000px;
height: 38px;
background-color: rgb(31, 41, 58);
text-align: center;
border-radius: 10px;
box-shadow: 2px 5px 1px grey;
margin:auto;
}
.box{
display: inline-block;
width: 60px;
height: 30px;
color: rgb(253, 253, 253);
font-family: "黑体";
font-weight: 600;
margin: px;
padding: 4px;
text-shadow: 10px 10px 10px gray;
line-height:30px;
}
.box:hover{
background-color: rgb(125, 6, 6);
}
</style>
</head>
<body>
<div class="big">
<div class="box">游戏1</div>
<div class="box">游戏2</div>
<div class="box">游戏3</div>
<div class="box">游戏4</div>
<div class="box">游戏5</div>
<div class="box">游戏6</div>
<div class="box">游戏7</div>
<div class="box">游戏8</div>
<div class="box">游戏9</div>
</div>
</body>
</html>
结果