zoukankan      html  css  js  c++  java
  • css FLEX 实现

    <html>
    <script>

    </script>
    <style>
        .main {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content:center;
            border: 1px solid;
            height: 100%;
        }
        .mian1{
            display: flex;
            flex-direction: column;
        }

        .item {
            height: 100%;
             48%;
            background-color: pink;
            margin-right: 10px;
            margin-bottom: 10px;
          
        }
        .itemx{
            height: 45%;
             100%;
            margin-right: 10px;
            margin-bottom: 10px;
            background-color:aqua;
        }
        /* .item1{
            height: 100px;
        } */
    </style>
    <div>
        <div class="main">
            <div class="item item1">1</div>
            <div class="item">
                <div class="main1">
                    <div class="itemx">1</div>
                    <div class="itemx">2</div>
                </div>
            </div>
            <!-- <div class="item">3</div> -->
        
        </div>
    </div>

    </html>
  • 相关阅读:
    SQL_TRACE与tkprof分析
    mysql学习之-三种安装方式与版本介绍
    1400
    输出二叉树中所有从根结点到叶子结点的路径
    [置顶] 处世悬镜之舍之
    Azkaban2配置过程
    [置顶] 处世悬镜之舍之 二
    UVALIVE 5893 计算几何+搜索
    Paxos算法 Paxos Made Simple
    Spring AOP 详解
  • 原文地址:https://www.cnblogs.com/huchaoheng/p/13396452.html
Copyright © 2011-2022 走看看