<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body{
margin: 0;
}
.pg-header {
height: 48px;
background-color: coral;
}
.pg-body > .menu {
position: absolute;
left: 0;
top: 48px;
bottom: 0;
width: 220px;
background-color: #ddd;
}
.pg-body > .body {
position: absolute;
left: 220px;
top: 48px;
bottom: 0;
right: 0;
}
</style>
</head>
<body>
<div class="pg-header"></div>
<div class="pg-body">
<div class="menu"></div>
<div class="body">{% block body %}{% endblock %}</div>
</div>
</body>
</html>
标签:body,layout,48px,代码,color,html,pg,absolute
From: https://www.cnblogs.com/cloud-2-jane/p/18400916