这里使用的图标来自于:http://www.fontawesome.com.cn/faicons/
<!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>
<link rel="stylesheet" href="../static/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<style>
* {
padding: 0;
margin: 0;
list-style: none;
text-decoration: none;
}
.sidebar {
position: fixed;
left: -200px;
width: 200px;
height: 100%;
background: #084561;
transition: all .5s ease;
}
.sidebar .top {
font-size: 22px;
color: #fff;
text-align: center