text-overflow

Introduction

The text-overflow CSS property sets how hidden overflow content is signaled to users.

Examples

Syntax

text-overflow: clip;
text-overflow: ellipsis;

Values

  • clip
    Default Value。This keyword value will truncate the text at the limit of the content area.

  • ellipsis
    This keyword value will display an ellipsis (, U+2026 HORIZONTAL ELLIPSIS) to represent clipped text.

Formal definition

Initial valueclip
Applies totext
Inheritedno
Animatableno

Formal syntax

clip | ellipsis

Difference between web

  • Not support fade

  • Not support <string> with custom clip text.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.