zoukankan      html  css  js  c++  java
  • Css查漏补缺16-弹性盒子小实例

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>弹性盒子(flex)实例</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <style>
            .icon_nav{
                max-width: 960px;
                margin: 30px auto;
            }
            .flex_box{
                display: flex;
                justify-content: space-around;
            }
            .flex_box .item .item_a{
                display: inline-block;
                width: 61px;
                height: 68px;
                text-align: center;
                text-decoration: none;
            }
            .flex_box .item .item_a img{
                width: 61px;
            }
        </style>
    </head>
    <body>
    <div class="icon_nav">
        <div class="flex_box">
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i1.jpg" alt="">
                    <span>天狗</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i1.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i1.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i1.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i1.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
        </div>
        <div class="flex_box">
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i1.jpg" alt="">
                    <span>天狗</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i2.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i2.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i2.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
            <div class="item">
                <a class="item_a" href="">
                    <img src="../Css3学习i2.jpg" alt="">
                    <span>天狗聚</span>
                </a>
            </div>
        </div>
    </div>
    </body>
    </html>
  • 相关阅读:
    条款1:理解模板类型推导
    非受限联合体
    整型
    vector作为函数返回类型
    SQL Server数据库空间管理 (1)
    1085 PAT单位排行 (25 分
    1084 外观数列 (20 分)
    1083 是否存在相等的差 (20 分)
    1082 射击比赛 (20 分)
    1081 检查密码 (15 分)
  • 原文地址:https://www.cnblogs.com/cuijunfeng/p/13185503.html
Copyright © 2011-2022 走看看