Declaring same CSS class multiple time

前端 未结 5 935
独厮守ぢ
独厮守ぢ 2021-01-07 05:39
haha
haha

This (type 1) seems workable :-

.big_         


        
5条回答
  •  有刺的猬
    2021-01-07 06:31

    type 1 is actually very common when declaring multiple classes with some share the same attributes and some have their owned unique attributes. type 2 is a bit dirty to maintain while type 3 is similar to type 1.

    it is all works, just a matter of coding style and ease of maintenance

提交回复
热议问题