zoukankan      html  css  js  c++  java
  • div文本垂直居中(div text vertical aligan)

    
    
    .box{
     135px;
    height: 84px;
    display: block; overflow: hidden;

    }

    .container { background:darkcyan; 135px; height: 84px; display: table; } .container p { display: table-cell; vertical-align: middle; word-break: break-all; text-align: center; }
    <div class="box">
     <div class="container">
           <p>ally and horifffffffffffffffffffffffffffally.</p>
     </div>
    </div>
    
    

    效果如下

    ally and horifffffffffffffffffffffffffffally.

  • 相关阅读:
    Servlet CDI Example Analysis
    JSON续
    JSON
    Ubuntu 下安装 MySQL
    Filter介绍
    Annotation相关
    Container、Injection
    Java buildTools
    Http协议
    URI URL URN 的区别
  • 原文地址:https://www.cnblogs.com/Zoes/p/5689834.html
Copyright © 2011-2022 走看看