Is there any reason to use selector '*.class' over '.class'?

前端 未结 4 716
Happy的楠姐
Happy的楠姐 2021-01-20 22:08

I found it in code and don\'t know what\'s the point of using *.class selector over .class selector.

4条回答
  •  忘掉有多难
    2021-01-20 22:48

    There would be no advantage gained - I think there is a performance issue if you use wildcard with further selectors:

    Caution: The all, or universal, selector is extremely slow, except when used by itself.

    Other than that - no difference

提交回复
热议问题