What does a pipe (|) do in a CSS selector?

前端 未结 2 1195
感情败类
感情败类 2020-12-30 19:49

I found the following definition in a CSS stylesheet :

*|*:link {color:#ff00ff;}

What\'s the use of the |? Is it

2条回答
  •  [愿得一人]
    2020-12-30 20:36

    It separates namespace and element name.

    Unless a default namespace has been defined, *|*:link is a complicated way of writing *:link or just :link.

    In an XML document, you could have the following:

    
    
    

提交回复
热议问题