zoukankan      html  css  js  c++  java
  • 圣杯布局,双飞翼布局

    圣杯布局也叫双飞翼布局,就是两边定宽,中间自适应的三栏布局,中间栏要放在文档流前面以优先渲染。

    直接上代码

    html结构

    <div class="content">
            <div class="left">
                左侧固定
            </div>
            <div class="center">
                中间自适应
            </div>
            <div class="right">
                右侧固定
            </div>
    </div>

    css样式

    <style>
      .content {
            padding: 0 200px;
            height: 200px;
            min- 200px;
      }
      .left {
             200px;
            height: 200px;
            background: red;
            float: left;
            margin-left: -200px;
       }
      .right {
             200px;
            height: 200px;
            background: yellow;
            float: right;
            margin-right: -200px;
       }
      .center {
             100%;
            min- 200px;
            height: 200px;
            background: green;
            float: left;
       }
    </style>

  • 相关阅读:
    python 项目实例
    flash教程
    flask request
    systemd-unit
    kubernets HA集群手动部署
    zookeeper(1)-简单介绍
    apache与nginx原理
    技术文章整理
    CMS垃圾回收器
    Zookeeper
  • 原文地址:https://www.cnblogs.com/ranyihang/p/13644336.html
Copyright © 2011-2022 走看看