CSSTDG读书笔记三

2005.03.0410:09

Chapter 2. Selectors

链接伪类(只应用于超链接): link, visited
动态伪类(可应用于任何元素): focus, hover, active
伪类顺序:link-visited-hover-active LVHA - “LoVe-Ha”

注意:first-child伪类的用法:
如,p:first-child 表示所有兄弟元素中,该p元素为第一个的情况,而不是p的所有直接子孙中的第一个元素。

伪类可以混合使用a:link:hover,a:visited:hover等

伪元素
:first-letter 第一个字母
:first-line 显示时的第一航
这两个伪元素只适用于block元素
:before
:after
content: “”;otherstyle

Comments »

The URI to TrackBack this entry is: http://old9.blogsome.com/2005/03/04/csstdg03/trackback/

No comments yet.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


为防评论机器人,劳驾您输入图片中的字符 :)
captcha