In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what the characteristics of CSS rules are, the article is very detailed, has a certain reference value, interested friends must read it!
Inheritance: the declaration of the parent element can be inherited by the child element, such as font, color, etc.
Cascading: if there are multiple css rules for the same element, non-conflicting declarations can be superimposed
Priority: if there are multiple css rules for the same element, the declaration of conflicts shall prevail.
Css priority demonstration
/ * 1. Inheritance: the style of the parent element can be inherited by the child element (color, font) * /
Body {
Font-family: "stylish", "Microsoft Yahi"
}
/ * 2. Cascading: set a different declaration to an element and the effect will be superimposed * /
H2 {
Color:red
}
H2 {
Font-size:50px
}
/ * 3. Priority: set the same declaration for the same element, and the effect is subject to the latter, that is, the principle of proximity * /
H3 {
Color:green
}
/ *. /
H3 {
Color:yellow
}
HELLO WORLD!
Hello, World!
The above is all the content of the article "what are the characteristics of CSS rules?" Thank you for reading! Hope to share the content to help you, more related knowledge, 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.