后台管理布局
结构
一般分三个部分:
顶:标题、logo、用户窗口
左侧:菜单框
右侧:功能区
简单写一个模板
base.html
<head>
{% block title %}
{% endblock %}
{% block css %}
<style>
.header{
width: 100%;
height: 50px;
background-color: xxx;
}
.menu{
background-color: xxx;
position: fixed;
top: 50px;
left: xxx;
bottom: 0px;
width: 33px
}
.content{
position: fixed;
top: 50px;
bottom: 0px;
right: xxx;
left: 33px;
overflow: auto;
padding: xxx
}
</style>
{% endblock %}
</head>
<body>
<div class="header"></div>
<div class="container">
<div class="menu"></div>
<div class="content"></div>
</div>
</body>