在html文件中写导航栏结构框架,在css文件中写表格框架要求,在html中用link标签引入
代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>导航栏</title>
<link rel="stylesheet" href="../作业2/边框样式.css">
<style>
li{
list-style-type: none;
display: inline;
}
li:hover{
background-color: brown;
}
</style>
</head>
<body>
<div>
<font style="color: aliceblue;letter-spacing: 2px;">
<li>游戏1</li>
<li>游戏2</li>
<li>游戏3</li>
<li>游戏4</li>
<li>游戏5</li>
<li>游戏6</li>
</font>
</div>
</body>
</html>
css
div{
border: 4px solid beige;
border-top-left-radius: 10%;
border-top-right-radius: 10%;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
width: 1510px;
height: 30px;
text-align: center;
background-color: rgba(14, 201, 230, 0.849);
}