制作一个导航栏
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业2</title>
<style>
li{
display: inline-block;
text-shadow: 10px 10px 10px gray;
color: white;
}
div{
border:5px solid rgb(40, 37, 48);
width: 600px;
height: 30px;
background-color: rgb(40, 37, 48);
border-radius: 15%;
text-align: center;
}
</style>
</head>
<body>
<div>
<li> 游戏1</li>
<li> 游戏2</li>
<li> 游戏3</li>
<li> 游戏4</li>
<li> 游戏5</li>
<li> 游戏6</li>
<li> 游戏7</li>
<li> 游戏8</li>
<li> 游戏9</li>
</div>
</body>
</html>
运行结果