效果图:
垂直导航栏:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
ul{
list-style-type: none;
margin: 0;
padding: 0;
border-radius:5px
}
ul.n1 {
background-color: bisque;
width: 10%;
position: fixed;
height: 100%;
border: 1px solid black;
}