In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the CSS how to declare the relevant knowledge of the grouping, the content is detailed and easy to understand, the operation is simple and quick, and has a certain reference value. I believe you will gain something after reading this CSS how to declare the grouping article. Let's take a look at it.
Because background is not a legal value for color, and because only one keyword can be specified for color, the user agent completely ignores this color declaration (including the background: black section). In this way, the H2 title will only be displayed in blue, without a red background, but it is more likely that you will not get a blue H2 at all. Instead, these headings only appear in the default color (usually black) and have no background color at all. Font: the 28px Verdana declaration still works because it does end correctly with a semicolon.
Like selector grouping, declaring grouping is a convenient way to shorten stylesheets, make them clearer, and easier to maintain.
Tip: it is a good habit to add a semicolon after the last declaration of the rule. When adding another declaration to a rule, you don't have to worry about inserting another semicolon.
Grouping that combines selectors and declarations
We can combine selector grouping and declaration grouping in a rule, and we can use fewer statements to define relatively complex styles.
The following rules specify a complex style for all headings:
H2, h3, h4, h5, H6, H7 {color:gray; background: white; padding: 10px; border: 1px solid black; font-family: Verdana;} this is the end of the article on "how CSS declares the grouping". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to declare the grouping of CSS". If you want to learn more knowledge, 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.