[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>