'property: 0' or 'property: 0px' in CSS?

后端 未结 9 1730
无人及你
无人及你 2020-11-28 10:38

I\'ve seen this notation used a lot, and I was wondering, is there is any notable difference between these two notations?

element#id
{
  property: 0;
}
         


        
9条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 10:38

    Zero of anything is zero. 0px = 0% = 0em = 0pt = 0

    Most people leave the unit off because it is simply unnecessary clutter.

提交回复
热议问题