zoukankan      html  css  js  c++  java
  • css的text-overflow与vertical-align与div水平居中

    css_text-overflow的使用
    含义:检索或设置对象处理溢出内容的方式
    注意事项:

    Text overflow can only happen on **block** or **inline-block** level elements,
    because the element needs to have a width in order to be overflow-ed.
    The overflow happens in the direction as determined by the direction property or related attributes.

    the elements needs to have
    display: block/inline-block,
    <length> ,
    white-space: nowrap,
    overflow: hidden,
    text-overflow: ellipsis,//这是以省略号形式处理溢出的字符

    -------------------------------
    css_vertical-align使用
    含义:设置或检索内联元素在行框内的垂直对其方式。
    注意事项

    position: absolute; display: table-cell; equals display: block; position: absolute;. 1#
    And vertical-align only applies to inline/table-cell elements.
    display: inline/table-cell

    ---------------------------------
    div水平居中
    主要css代码有两个,一个为text-align:center(内容居中),另外一个为margin:0 auto;其两个样式需要配合使用才能实现div盒子的居中显示排版。

  • 相关阅读:
    CBOW Model Formula Deduction
    RBM Formula Deduction
    various Sequence to Sequence Model
    Gated Recurrent Unit (GRU)公式简介
    RNN 入门教程 Part 4 – 实现 RNN-LSTM 和 GRU 模型
    List接口
    集合框架的接口
    接口的使用
    常量的定义
    接口的特性与定义
  • 原文地址:https://www.cnblogs.com/alisonGavin/p/7159636.html
Copyright © 2011-2022 走看看