- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>作业2.1</title>
- <style>
- *{
- margin:0px;
- }
- .box{
- width: 800px;
- height:50px;
- background-color: black;
- margin: auto;
- text-align: center;
- border-radius: 15%;
- }
- .kong1{
- display: inline;
- width: 100px;
- }
- li{
- list-style:none;
- display:inline-block;
- border: 1px soldred;
- background-color:black;
- box-shadow: 10px 10px 10px gray;
- text-align: center;
- color: aliceblue;
- margin-top: 10px;
- }
- </style>
- </head>
- <body>
- <div class="box">
- <div class="kong1"></div>
- <li class="li1">游戏1</li>
- <li class="li2">游戏2</li>
- <li class="li3">游戏3</li>
- <li class="li4">游戏4</li>
- <li class="li5">游戏5</li>
- <li class="li6">游戏6</li>
- <li class="li7">游戏7</li>
- <li class="li8">游戏8</li>
- <li class="li9">游戏9</li>
- <div class="kong2"></div>
- </div>
- </body>
- </html>
02.css创建导航栏
最新推荐文章于 2024-08-22 11:40:47 发布