• css3 div垂直居中


    css3:

    #dd{
    height: 300px;
    background: #0000cc;
    display: -webkit-box;
    display: flex;
    display: -webkit-flex;
    -webkit-justify-content: center;
    -webkit-box-pack: center;
    justify-content: center;
    flex-direction: column;
    -webkit-flex-direction: column;
    -webkit-box-orient: vertical;
    }
    .ds{
    height: 100px;
    background: red;

    }

    HTML:
    <div id="dd">
    <div class="ds"></div>
    </div>

    结果:

    cc3多余的文本显示省略号

    h2{

    display:-webkit-box; -webkit-box-orient:horizontal; box-orient:horizontal; overflow:hidden; text-overflow:ellipsis;  -webkit-line-clamp:2; -webkit-box-orient:vertical;

    }



  • 相关阅读:
    37.js----浅谈js原型的理解
    iOS
    iOS
    iOS
    python3
    ios
    iOS
    python3
    python3
    iOS
  • 原文地址:https://www.cnblogs.com/tanghongbo/p/4744430.html
Copyright © 2020-2023  润新知