In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what are the characteristics of CSS". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Inheritance: after some attributes define a set of styles, the child tags of this tag or the tags of future generations will continue to use this set of styles. For example, the font attribute
two。 Cascading: it can also be derived from the name of CSS that cascading stylesheets, that is, multiple styles defined by a tag, will be used cascading, and if you encounter the same attribute, the last defined attribute value will be the final value.
3. There are three forms of CSS stylesheets, the priority of which is inline stylesheet > internal stylesheet > external stylesheet; the principle is "nearest principle"
4.! Important, which can change the priority of a style attribute, such as: color: "red"! important indicates that no matter which stylesheet form the attribute is in, it has the highest priority
Three forms of use of stylesheets: 1. Inline style (also known as: inline style) 2. Internal style sheet 3. External style sheet
Inline stylesheet: it is defined as attribute style directly in the HTML tag, syntax specification:
Indicating that the text color style of the current p label is red and the scope is in the current label
Internal style sheet: it is defined in the tag of HTML, defined in; syntax specification: selector {attribute: value}, scope: valid in the current page. In HTML, as long as the defined tag is defined in style >, then the defined style will be referenced.
External stylesheet: it is defined in a .css file outside the page, and when you want to use the defined style, refer to the .css file directly by referencing the tag in. The content of the .css file is to define the style of the above internal style sheet all the time, that is, selector {attribute: value}; syntax specification:
This is the end of the content of "what are the characteristics of CSS". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.