zoukankan      html  css  js  c++  java
  • 记录三段式布局

    分享一种平时用的三段式布局(flex)

    主要思路是  上中下    header&footer 给高度  main 占其余部分

    html 部分

    <div class='wrap'>

      <div class='header'></div>

      <div class='main'></div>

      <div class='footer'></div>

    </div>

    css 部分

    .wrap{

      display: flex;  //弹性盒子

      flex-direction: column;  //垂直排列
      height: 100%;    //容器盒子要有高度
      .header{
        height: .48rem;
      }
      .main{
        flex: 1;    //占剩余的部分
        overflow-y: auto;
      }
      .footer{
        height: .48rem;
      }

    }

     
  • 相关阅读:
    JSON和Object数组在js中的转换
    Raphael绘制箭头arrow
    Web后台框架开发
    数据库开发
    docker
    git
    linux
    正则表达式工具
    python模拟ls命令
    python3基础
  • 原文地址:https://www.cnblogs.com/jshe/p/13235310.html
Copyright © 2011-2022 走看看