How to set line-height in browser css
This article mainly introduces how to set line-height in the browser css. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
First, the reasons for the entry into force of the line:
Check whether the font font-family attribute value set in your CSS can be used in Chinese calligraphy. Such as: font-family: "Song style", font-family: "Microsoft Yahei", font-family: "boldface" and so on.
The problem with the title is that your CSS font formatting equipment uses Chinese calligraphy directly.
Second, the effective improvement of line-height:
Convert fonts to Chinese characters and convert them into English words encoded by Unicode or using fonts.
Plan to effectively convert Chinese to English or Unicode introduction:
1. Song style
English: SimSun
Unicode code:\ 5B8B\ 4F53
2. Blackbody
English: SimHei
Unicode code:\ 9ED1\ 4F53
3. Microsoft Yahei
English: Microsoft YaHei
Unicode code:\ 5FAE\ 8F6F\ 96C5\ 9ED1
More calligraphy conversion tables in CSS: / / www.css5.com.cn/jiqiao/325.shtml
Then the CSS font configuration is converted to use:
Body {font-family: "Microsoft Yahi"}
After conversion
Body {font-family: "Microsoft YaHei"}
Or
Body {font-family: "\ 5FAE\ 8F6F\ 96C5\ 9ED1"}
Finally, after converting the Chinese font into Chinese, the line-height line height will no longer work normally.
The above is all the contents of the article "how to set line-height in browser css". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!