zoukankan      html  css  js  c++  java
  • 页面左边导航固定,右边自适应宽度

    模式一:

    <style type="text/css">
    div { height:300px; border:2px solid #306;}
    .left{300px; position:absolute; left:0; top:0;}
    .right{ margin-left:310px;}
    body{margin:0; padding:0;}
    </style>
    </head>
    
    <body>
        <div class="left"></div>
        <div class="right"></div>
    </body>

    模式二:

    <style type="text/css">
    div { height:300px; border:2px solid #306;}
    .left{300px; position:absolute; left:0; top:0;}
    .center{ margin-left:310px; margin-right:200px;}
    .right { 190px;position:absolute; right:0; top:0;}
    body{margin:0; padding:0;}
    </style>
    </head>
    
    <body>
        <div  class="center"></div>
        <div class="left"></div>
        <div class="right"></div>
    </body>
  • 相关阅读:
    匈牙利算法自主总结
    luogu P2071 座位安排
    luogu P1613 跑路
    luogu P1250 种树
    luogu P1744 采购特价商品
    网络流
    其他图论
    组合计数
    小技巧
    矩阵&&高斯消元
  • 原文地址:https://www.cnblogs.com/wanliyuan/p/3696977.html
Copyright © 2011-2022 走看看