zoukankan      html  css  js  c++  java
  • css横向 弹性盒子布局的一些属性

    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="./css/bootstrap-3.3.5/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <style type="text/css">
    html,body{

    }
    header{
    position: relative;
    }
    header .center{
    position: relative;
    100px;
    height: 50px;
    background: url(../image/***.png);
    background-size: 74px 19px;
    background-repeat: no-repeat;
    background-position:center center;
    }
    /* 横向 弹性盒子布局 */
    nav{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient:horizontal;
    -webkit-flex-flow:row;
    flex-flow:row;
    position: relative;
    100%;
    height: 40px;
    background-color: #e1017e;
    }
    nav .menu{
    -webkit-box-flex:1;
    -webkit-flex: 1;
    flex: 1;
    100%;
    height: 40px;
    line-height: 40px;
    font-size:13px;color:#fff; text-align: center;
    }
    </style>
    </head>
    <body>
    <header>
    <div class="left"></div>
    <div class="center"></div>
    <div class="right"></div>
    </header>
    <nav>
    <div class="menu">水果</div>
    <div class="menu">零食</div>
    <div class="menu">食材</div>
    <div class="menu">牛奶</div>
    <div class="menu">蔬菜</div>
    </nav>
    <div></div>
    </body>

  • 相关阅读:
    63.C++异常
    62.C++文件操作list实现内存检索,实现两千万数据秒查
    61.C++文件操作实现硬盘检索
    ios之数据持久化
    ios NSRange
    安排
    接口隔离原则
    Liskon替换原则
    开放封闭原则
    单一职责原则
  • 原文地址:https://www.cnblogs.com/moli-/p/6322841.html
Copyright © 2011-2022 走看看