【CSS】Intermediate2:Pseudo Classes

时间:2024-08-16 17:06:26

1.specify a state or relation to the selector

selector:pseudo_class { property: value; }

2.Link

【CSS】Intermediate2:Pseudo Classes

3.Dynamic Pseudo Classes

apply styles when something happens to something.

active:when a link is clicked on

hover:when a cursor moves over a link

focus:when it is selected by,is ready for,keyboard input 支持度不太广泛

【CSS】Intermediate2:Pseudo Classes

4.first-child

CSS3;last-child ,target first-of-type