伪类
1、普通的伪类
p:nth-of-type(1){}
p:nth-of-type(2){}
<p></p>
<p></p>
第一个
p:first-child{}
最后 一个
p:last-child{}
2、锚伪类
a:link{} 未点击时(常用) a{}
a:visited{} 点击过后
a:hover{} 鼠标悬停(常用)
a:active{} 点击时刻
cursor: pointer; 鼠标经过时呈手型
二级菜单的显示隐藏
display:none; 隐藏
display:block; 显示
通过父级找子级(hover给父级)
就爱阅读www.92to.com网友整理上传,为您提供最全的知识大全,期待您的分享,转载请注明出处。
来源: http://www.92to.com/bangong/2017/03-04/18088425.html