首页 > Web开发 > 详细

[MVC] DIV 布局

时间:2016-03-03 12:43:54      阅读:287      评论:0      收藏:0      [点我收藏+]

[MVC] DIV 布局

<style>
    .top {
        background-color: red;
        height: 50px;
        top: 0px;
        position: absolute;
        left: 0;
        width: 100%;
    }

    .bottom {
        background-color: green;
        width: 100%;
        height: 100px;
        bottom: 0;
        position: absolute;
        left: 0;
    }

    .middle {
        background-color: yellow;
        position: absolute;
        top: 50px;
        left: 200px;
        bottom: 0;
        overflow-y: auto;
        margin-bottom:100px;
        right:200px;
    }

    .left {
        width: 200px;
        background-color: purple;
        position: absolute;
        left: 0;
        top: 50px;
        bottom: 0;
        margin-bottom: 100px;
        overflow-y: auto;
    }

    .right {
        width: 200px;
        background-color: grey;
        position: absolute;
        right: 0;
        top: 50px;
        bottom: 0;
        margin-bottom: 100px;
        overflow-y: auto;
    }

</style>


<div class="top">top</div>

<div class="left">
    left<br />
    @{
        for (int i = 0; i < 1000; i++)
        {
            @i<br />
        }
    }
</div>

<div class="middle">
    middle<br />
       @{
           for (int i = 0; i < 1000; i++)
           {
               @i
           }
           for (int i = 0; i < 1000; i++)
           {
               @i<br />
           }
       }
    
</div>

<div class="right">
    right<br />
    @{
        for (int i = 0; i < 1000; i++)
        {
            @i<br />
        }
    }
</div>

<div class="bottom">bottom</div>

 

[MVC] DIV 布局

原文:http://www.cnblogs.com/fzz2727551894/p/5237882.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!