Home  >  Article  >  Web Front-end  >  How to use css punctuation-trim attribute

How to use css punctuation-trim attribute

藏色散人
藏色散人Original
2019-05-30 10:49:082971browse

css punctuation-trim attribute specifies whether punctuation is trimmed if the punctuation is at the beginning or end of the line, or adjacent to another full-width punctuation mark.

How to use css punctuation-trim attribute

How to use the css punctuation-trim attribute?

Function: The punctuation-trim attribute specifies whether to trim punctuation if the punctuation is at the beginning or end of the line, or adjacent to another full-width punctuation mark.

Syntax:

punctuation-trim: none|start|end|allow-end|adjacent

Description:

none Does not trim opening or closing punctuation.

start Trim open punctuation at the end of each line.

end Trim closing punctuation at the end of each line.​

allow-end ​

adjacent ​

Note:

Currently mainstream browsers do not support the punctuation-trim attribute.

css punctuation-trim attribute usage example

p{
punctuation-trim:start;
}

The above is the detailed content of How to use css punctuation-trim attribute. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn