pesudo-class of element

a: link {

color: green;        applied to links when they are in an unvisited state

{

a: visited {

color: red;       applied to links when they are visited

}

a: hover {

color: yellow      applied to links when you hover over a link

}


make sure there's no space in these selectors

你可能感兴趣的:(HTML&CSS,pesudo,class,HTML)