Home > Article > Web Front-end > What are the text attributes of css3
The text attributes of css3 include: punctuation-trim, text-align-last, text-justify, text-outline, text-overflow, text-shadow, text-wrap, word-break, etc.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
css3 new text attribute
Attribute | Description | CSS |
---|---|---|
hanging-punctuation | Specifies whether a punctuation mark may exceed the line box | 3 |
punctuation-trim | Specify whether a punctuation mark should be removed | 3 |
text-align-last | When text-align is set to justify , the alignment of the last line. | 3 |
text-justify | Specifies the scatter alignment method when text-align is set to justify. | 3 |
text-outline | Set the outline of the text. | 3 |
text-overflow | Specifies what should happen when text overflows the containing element | 3 |
text-shadow | Add shadow to text | 3 |
text-wrap | Specify Text line break rules | 3 |
word-break | Specify line break rules for non-CJK text | 3 |
word-wrap | Set the browser to wrap words that are too long. | 3 |
(Learning video sharing: css video tutorial)
The above is the detailed content of What are the text attributes of css3. For more information, please follow other related articles on the PHP Chinese website!