What do two dots in a CSS declaration mean?

后端 未结 6 1087
予麋鹿
予麋鹿 2020-12-31 00:56

This is a bit of code from Twitter Bootstrap

.navbar .nav.pull-right .dropdown-menu,
.navbar .nav .dropdown-menu.pull-right {
  left: auto;
  right: 0;
}
         


        
6条回答
  •  鱼传尺愫
    2020-12-31 01:12

    The selector looks for any element with the class nav that also has a class of pull-right:

    
    

    As a side note, the order doesn't matter both in the selector and in the class attribute.

提交回复
热议问题