页面布局
Posted leiwenbin627
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了页面布局相关的知识,希望对你有一定的参考价值。
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>
以上是关于页面布局的主要内容,如果未能解决你的问题,请参考以下文章