In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to set css just indented two Chinese characters position, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
1. First use the indented CSS attribute: text-indent
2. The accurate choice of the unit:
1), px unit
If you know the font size, not to mention that it is static, you can use px as the indentation unit.
If the font size is 12px, configure text-indent:24px (24px control).
2), em unit (strongly recommended)
Em is a unit of relative length
No matter how much the font size is set, the em unit as the indent style unit can adaptively realize the indentation of the text length.
Text-indent:2em setting equipment 2em, or complete regardless of the font size configuration, can adapt to indent 2-word partition space attainments.
3. Indent exactly 2 Chinese character positions.
1) indent the instance CSS+HTML code
Just now indent 2 words CSS instance CSS5.f14 {font-size:14px} .f22 {font-size:22px} .sjlz {text-indent:2em} my font size is 14px, see if it happens to indent 2 Chinese character positions, my font size is 2px, see if I can just indent 2 Chinese character positions
Set the equipment to set a 14px font size, a css font size to 22px, and set the repulsive 2em indentation trick.
2), screenshot
Thank you for reading this article carefully. I hope the article "how to set css just to indent the position of two Chinese characters" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.