In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces css how to set all the margin properties of the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that after reading this css how to set all margin properties of the article will have a harvest, let's take a look.
The margin attribute is the abbreviated attribute that css uses to set all the margin attributes of the fixture in a declaration, and margin is the partition between css bundle-level elements, which is transparent and stereotyped.
The margin attribute includes margin left: distance from the left element block (setting distance to the left inner margin); margin top: distance from the top (top) element block (setting the distance between the equipment and the top element block); margin right: distance from the right element block (setting the distance from the right element block); and margin bottom: bottom element block isolation distance (configuration distance low (bottom) element block distance). The two-dimensional creation diagram can be seen in the CSS attribute two-dimensional diagram.
Dissecting diagram of margin
Margin left usage: margin-left:10px; means a distance of 10 pixels from the left element block, and a percentage such as (margin-left:10%; interval 10% partition of the left element block) css margin-left tutorial
Margin right usage: the meaning of margin-right:10px; is 10 pixels away from the element block on the right, which can be followed by a percentage such as (10% interval between the element block on the right side of the margin-right:10%; isolation distance)
Margin top usage: the meaning of margin-top:10px; is 10 pixels away from the top edge element block, which can be compared to the percentage (10% isolation distance between margin-top:10%; and top edge element block) css margin-top
Margin bottom usage: the meaning distance of margin-bottom:10px; is 10 pixels from the low edge element block, which can be compared to the percentage (10% isolation distance of the bottom edge element block separated by margin-bottom:10%;) css margin-bottom
Note the "-" sign of the link at both ends of the margin, set the interval value with ":" and assign the value to it, and end with ";", and all with lowercase half-corner letters.
If you need to configure the value of margin from left to right, it may be abbreviated to optimize css.
For example, the abbreviations are:
The meaning of margin:10px; is that the isolation distance between the upper and lower left and right element blocks is 10px (10 pixels) equal to the abbreviation of margin-top:10px; margin-bottom:10px; margin-left:10px; margin-right:10px; abnormal performance.
Margin:5px 10px; it means that the distance between concave and convex element blocks is 5px, and the distance between dominant element blocks is 10px, which is equal to the abbreviation of margin-top:5px; margin-bottom:5px; margin-left:10px; margin-right:10px;.
Margin:5px 6px 7px; in meaning, the isolation distance of element blocks is 5px, the partition of lower element blocks is 7PX, and the interval between left and right element blocks is 6px, which is equal to the abbreviation of margin-top:5px; margin-bottom:7px; margin-left:6px; margin-right:6px; abnormal effect.
Margin:5px 6px 7px 8px; in meaning, the element block is 5px, the right element block partition is 6px, the lower element block distance is 7px, and the left element block isolation distance 8px, which is equal to the abbreviation of margin-top:5px; margin-right:6px; margin-bottom:7px; margin-right:8px;.
The conversion method of margin:5px 6px 7px 8px; is clockwise:
Margin attribute conversion diagram on "how css sets all margin properties" this article is introduced here, thank you for reading! I believe you all have a certain understanding of "how to set all margin properties in css". If you want to learn more, 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.