Home > Web Front-end > HTML Tutorial > css style weight priority_html/css_WEB-ITnose

css style weight priority_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:49:26
Original
1255 people have browsed it

Style selector weight priority:

important > Inline style> ID > Class> Tag | Pseudo class | Attribute selection > Pseudo object > Inheritance> Wildcard

◆The weight of important is 1,0,0,0

◆The weight of ID is 0,1,0,0

◆The weight of the class is 0,0,1,0

◆The weight of the label is 0,0,0,1

◆The weight of the pseudo-class is 0,0, 1,0

◆The weight of the attribute is 0,0,1,0

◆The weight of the pseudo-object is 0,0,0,1

◆The weight of the wildcard is 0,0,0,0

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template