The loading order of css is generally External style sheet
Recommended: "css video tutorial"
CSS (Cascading Style Sheets, cascading style sheets), it is A computer language used to express file styles such as HTML or XML. It is a programming language used to express HTML styles. It is a style language that can separate web pages and content.
CSS is mainly used to design the style of web pages and beautify web pages; it can not only statically modify web pages, but also dynamically format various elements of web pages in conjunction with various scripting languages.
CSS can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font size styles, and has the ability to edit web page objects and model styles.
CSS style types
Inline style, internal style, external style.
CSS loading order
The loading order is generally: (External style)External style sheet <(Internal style)Internal style sheet <(Inline style) Inline style
There is a special case: if the external style is placed behind the internal style, the external style will override the internal style.
CSS priority
Explanation: Priority is mainly for different selection methods.
The weight of the inline style sheet> The weight of the ID selector> The weight of the Class class selector> The weight of the HTML tag selector
can be added at the end of the attribute !important, declare the maximum priority
The above is the detailed content of What is the loading order of css. For more information, please follow other related articles on the PHP Chinese website!