Home > Web Front-end > HTML Tutorial > css weight

css weight

WBOY
Release: 2016-08-04 08:53:16
Original
1420 people have browsed it

1. Inline style refers to the style defined in the html document

<h1 style="color: #fff;">headerh1>

2. ID selector

3. Class, attribute selector and pseudo-class selector

This category includes various classes, attribute selectors, pseudo-class selectors such as :hover, :focus, etc.

4. Elements and pseudo-elements

Element and pseudo-element selectors, such as :before and :after.

Pseudo element:

  1. ::after
  2. ::before
  3. ::first-letter
  4. ::first-line
  5. ::selecton

Start from 0, an inline style +1000, an id +100, an attribute selector/class or pseudo-class +10, an element name, or pseudo-element +1

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