Home  >  Article  >  Web Front-end  >  Use CSS to set whether punctuation can be placed outside line boxes

Use CSS to set whether punctuation can be placed outside line boxes

WBOY
WBOYforward
2023-08-25 23:49:02577browse

用 CSS 设置标点符号是否可以放置在行框之外

Use the hanging-punctuation attribute to set whether punctuation can be placed outside the line box. It has the following values

Sr.No Attribute value and description

1. Finally

No punctuation

2. The first

punctuation mark is outside the starting edge of the first line

3. Final

The punctuation mark is outside the closing edge of the last line

##Set this on your web page

hanging-punctuation: none;
hanging-punctuation: first;
hanging-punctuation: last;

The above is the detailed content of Use CSS to set whether punctuation can be placed outside line boxes. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete