2727551894

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
统计
 

[MVC] DIV 布局

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<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>

 

posted on   xmj112288  阅读(213)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
 
点击右上角即可分享
微信分享提示