combined multiple classes into one css rule

前端 未结 3 2018
后悔当初
后悔当初 2020-12-19 07:08

I\'m trying to do some buckets here and generally I would do 1 class element at a time. That seems silly since classes can share attributes.

HTML

&l         


        
3条回答
  •  清歌不尽
    2020-12-19 07:35

    Use commas to separate the selectors in a list

    .bucket1, .bucket2, .bucket3 {
    }
    
    .bucket4, .bucket5, .bucket6 {
    }
    

提交回复
热议问题