In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to set segment spacing in html". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to set segment spacing in html" can help you solve your doubts.
In html, paragraphs are generally segmented using the P tag, and when using the p tag, there will be a little distance between the upper and lower paragraphs, so how do we control the distance between paragraphs? generally, we set the distance between paragraphs through css.
1. Row height attribute: line-height
The line-height attribute can be used to set the distance between paragraphs. Generally, the greater the value, the greater the distance between paragraphs. Of course, the distance between words is also larger. In many cases, we do not use the line-height attribute to set it.
The code is as follows:
P {line-height:30PX}
two。 The inner margin is filled in.
Html paragraph spacing can also be set by using padding to set the distance between paragraphs and fill in the blanks up and down, so as to achieve the distance setting between paragraphs. The code is as follows:
P {dading:30px0}
3. Setting of external margin margin
We all margin should not be very strange, in fact, as long as we set the upper and lower left and right margins of the margin and the distance between the object, we can achieve the distance between the upper and lower paragraphs. The syntax is as follows:
P {margin:30px0}
In a paragraph of an article, paragraphs are generally p tags. To achieve the distance between paragraphs, we generally use maring and dadding, which can easily achieve the distance between paragraphs.
After reading this, the article "how to set segment spacing in html" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.
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.