zoukankan      html  css  js  c++  java
  • 左侧固定 右侧宽度自适应

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>无标题文档</title>
        <style type="text/css">
            * {
                padding: 0px;
                margin: 0px;
            }
    
            body {
                color: #FFF;
                font-size: 24px;
                text-align: center;
            }
    
            .left {
                width: 120px;
                height: auto !important;
                height: auto;
                min-height: 300px;
                float: left;
                background: #F00;
            }
    
            .right {
                width: 100%;
                height: 300px;
                background: #36F;
            }
    
            .container {
            }
    
            .foot {
                width: 100%;
                height: 30px;
                background: #000;
            }
        </style>
    </head>
    
    <body>
    <div class="container">
        <div class="left"><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
        </div>
        <div class="right"></div>
        <div style="clear:both"></div>
    </div>
    <div class="foot">footer</div>
    </body>
    </html>
  • 相关阅读:
    bzoj1066: [SCOI2007]蜥蜴
    bzoj3504: [Cqoi2014]危桥
    bzoj2756: [SCOI2012]奇怪的游戏
    bzoj1570: [JSOI2008]Blue Mary的旅行
    Ultra-QuickSort
    Bin Packing
    Watering Grass
    区间覆盖
    抄书 Copying Books UVa 714
    分馅饼 Pie
  • 原文地址:https://www.cnblogs.com/ganler1988/p/3197581.html
Copyright © 2011-2022 走看看