标签:页面布局 bottom over top white menu char hit flow
s2.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.left {
float: left;
}
.right{
float: right;
}
.pg-header{
height:48px;
background-color: #2459a2;
color: white;
}
.pg-content .menu{
position: fixed;
top:48px;
left:0;
bottom:0;
min-width: 200px;
background-color: #dddddd;
}
.pg-content .content{
position: fixed;
top:48px;
right:0;
bottom:0;
left:200px;
background-color: purple;
overflow: auto;
}
</style>
</head>
<body style="margin: 0;">
<div class="pg-header"></div>
<div class="pg-content">
<div class="menu left">aa</div>
<div class="content
left">
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p><p>ass</p>
<p>ass</p><p>ass</p><p>ass</p></div>
</div>
<div class="pg-footer"></div>
</body>
</html>
标签:页面布局 bottom over top white menu char hit flow
原文地址:https://www.cnblogs.com/leiwenbin627/p/10703818.html