码迷,mamicode.com
首页 > 其他好文 > 详细

页面布局

时间:2019-04-14 09:48:34      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:页面布局   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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!