"a:active"与"a:active"之间的区别和".active a.class" [英] Difference between "a:active" and ".active a.class"
本文介绍了"a:active"与"a:active"之间的区别和".active a.class"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在一个css文件中有一个
I have in a css file this:
#toolbar a.opener:hover,
#toolbar a.opener:active,
#toolbar a.opener:focus {
something1;
}
#toolbar .active a.opener {
something2;
}
问题:
- 第一活动"和第二活动"之间有什么区别 活跃"?
- 什么时候称为第一活动"和第二活动"?
- What is the difference between the "first active" and the "second active"?
- When are called the "first active" and the "second active"?
推荐答案
第一个规则包含伪"类,这些类在元素处于某种状态时将其定位. :active伪选择器在用户单击元素时适用于该元素.
The first rule incorporates "pseudo" classes, which target the element when it's in a certain state. The :active pseudo-selector applies to the element when the user is clicking on it.
后一个规则只是一个类选择器,它适用于具有"opener"类并且是具有"active"类的元素的后代的锚元素.
The latter rule is simply a class selector, which applies to an anchor element which has the class "opener" and is a descendand of an element which has the class "active".
这篇关于"a:active"与"a:active"之间的区别和".active a.class"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文