6.3 文本溢出

  • text-overflow 设置文本内容溢出容器时的状态

    取值:

    clip: 当内联内容溢出块容器时,将溢出部分裁切掉。 (默认值)

    ellipsis: 当内联内容溢出块容器时,将溢出部分替换为(...)。

    注意:

    要使得 text-overflow 属性生效,块容器必须显式定义 overflow 为非 visible 值, white-spacenowrap 值。

results matching ""

    No results matching ""