combined multiple classes into one css rule

前端 未结 3 2017
后悔当初
后悔当初 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:25

    It may even make sense to do something like

    That way you'll only need to say

    .bucketStyleFirst {
    
    }
    
    .bucketStyleSecond {
    
    }
    

    This is of course if you'll only be having the two different options.

提交回复
热议问题