是垂直条(|)有效的CSS,还是Firefox特有的? [英] Is the vertical bar (|) valid CSS, or Firefox-specific?
问题描述
我在Firebug注意到这个规则:
I noticed this rule in Firebug:
*|*:link {
color:#0000EE;
}
我不知道我见过垂直条code> | )。它在关于:PreferenceStyleSheet,因此它可能是Firefox特有的。
I'm not sure that I've ever seen the vertical bar (|
) before. It's in the about:PreferenceStyleSheet so it may be Firefox-specific.
这是什么意思?任何链接到引用?我认为竖线可能是一个OR,但这是CSS中的逗号。
What does it mean? Any link to a reference? I thought possibly that the vertical bar was an "OR", but that's the comma in CSS.
推荐答案
|
selector是命名空间选择器 。 |
之前的部分是命名空间,并且 |
之后的部分。
The |
selector is the namespace selector. The part before the |
is the namespace and the part after the |
the selector.
所以 * | *:link
表示匹配任何链接的命名空间中的任何元素。
So *|*:link
means to match any element in any namespace that is a link.
这篇关于是垂直条(|)有效的CSS,还是Firefox特有的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!