When specifying a 0 value in CSS, should I explicitly mark the units or omit?

后端 未结 8 1168
旧巷少年郎
旧巷少年郎 2020-12-16 09:13

This is more of a \'philosophy\' argument, but I\'d like to know what the recommended practice here. I\'m not setting it up as a Wiki yet in case there is an \'official\' an

8条回答
  •  死守一世寂寞
    2020-12-16 09:40

    I always omit as it seems easier to read, the zero pops out and is easily distinguishable from the with-unit values around it.

提交回复
热议问题