CSS: What this Asterisk (*) does?

后端 未结 2 361
故里飘歌
故里飘歌 2021-01-02 07:03

this line of code is for the navigation bar of Apple.com

#globalheader #globalnav[class*=\"nosearch\"] { width:100%; }

Somebody know what t

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-02 07:45

    * is very similar to ~ but ~ matches only with space around it.

    E.g.

    foo bar
    

    but not

    foo-bar
    

    * will match both.

提交回复
热议问题