【代码笔记】Web-CSS-CSS伪类

一,效果图。

 

【代码笔记】Web-CSS-CSS伪类_第1张图片

二,代码。

 

复制代码





    
    CSS 伪类
    



    

这是一个链接

注意: a:hover 必须在 a:link 和 a:visited 之后,需要严格按顺序才能看到效果。

注意: a:active 必须在 a:hover 之后。

This is some text.

This is some text.

Note: For :first-child to work in IE8 and earlier, a DOCTYPE must be declared.

I am a strong man.I am a strongman.

I am a string man.I am a strongman.

Note:For:first-child to work in IE8 and earlier,a DOCTYPE must be declared.

Some text A quote in a paragraph Some text.

In this example, :lang defines the quotation marks for q elements with lang="no":

Note: IE8 supports the :lang pseudo class only if a !DOCTYPE is specified.

复制代码

 

参考资料:《菜鸟教程》

你可能感兴趣的:(Web-代码笔记)