导航栏
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>导航栏</title>
<style>
a{
display: inline-block;
width: 100px;
height: 30px;
background-color: gray;
text-align: center;
text-decoration: none;
color: white;
border-radius: 5px;
line-height: 30px;
}
a:hover{
background-color: orange;
}
div{
align-items: center;
}
</style>
</head><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>导航栏</title>
<style>
a{
display: inline-block;
width: 100px;
height: 30px;
background-color: gray;
text-align: center;
text-decoration: none;
color: white;
border-radius: 5px;
line-height: 30px;
}
a:hover{
background-color: orange;
}
div{
align-items: center;
}
</style>
</head>
<body>
<div>
<ul>
<span><b>游戏1</b></span>
<span><b>游戏2</b></span>
<span><b>游戏3</b></span>
<span><b>游戏4</b></span>
<span><b>游戏5</b></span>
<span><b>游戏6</b></span>
<span><b>游戏7</b></span>
<span><b>游戏8</b></span>
<span><b>游戏9</b></span>
</ul>
</div>
</body>
</html>
<body>
<div>游戏1</div>
<div>游戏2</div>
</html>