css3 - set the font spacing

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

Foreword

Today accidental discovery, font spacing to reduce the problem mentioned fuzzy brain no idea, record it here, consolidate the foundation.

Set character spacing

letter-spacing attributes to increase or decrease the blank (character spacing) between characters.
This defines how much space to insert between text characters box. Since the character font is generally narrower than the character frame, when the specified length value, generally will adjust spacing between letters. Thus, normal value equivalent to 0.
Note: Allow the use of a negative value, packed tightly between it makes letters.

<p>这是正常的字符间距</p>
<p style="letter-spacing:10px;">这是加宽10px字符间距</p>
<p style="letter-spacing:-10px;">这是缩减3px字符间距</p>

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_44198965/article/details/94646903