zoukankan      html  css  js  c++  java
  • css3部分整理

    1、css弹性盒子属性

        父级元素属性的设置

        

    #father{
                    width: 800px;
                    height: 300px;
                    background-color: darkgray;
                    /*定义父级元素为弹性元素*/
                    display: flex;
                    /*水平方向的对齐方式*/
                    /*justify-content:flex-start;*/
                    /*垂直对齐方式*/
                    /*align-items:center;*/
                    /*换行方式*/
                    /*flex-wrap: wrap;*/
                    /*排列方式*/
                    flex-direction:column-reverse;
                }

    下面是html代码

    <div id="father">
                <div class="son">1</div>
                <div class="son1">2</div>
                <div class="son">3</div>
            </div>

    #father{
                     800px;
                    height: 300px;
                    background-color: darkgray;
                    /*定义父级元素为弹性元素*/
                    display: flex;
                    /*水平方向的对齐方式*/
                    /*justify-content:flex-start;*/
                    /*垂直对齐方式*/
                    /*align-items:center;*/
                    /*换行方式*/
                    /*flex-wrap: wrap;*/
                    /*排列方式*/
                    flex-direction:column-reverse;
                }

  • 相关阅读:
    GetEnumName 枚举名称 字符串
    拖拽文件
    小米手机Root 刷机
    微软语言 中文 英文 中英文
    MTP
    MD5加密算法全解析
    ORA-28000: the account is locked
    HTTP状态码
    HTTP 消息结构
    @RequestParam @RequestBody @PathVariable 等参数绑定注解详解
  • 原文地址:https://www.cnblogs.com/comeon0328/p/8707591.html
Copyright © 2011-2022 走看看