search

Home  >  Q&A  >  body text

老师同学,为什么绝对定位,top:0px 实际PS测量多了3PX?谢谢


124.png

老师同学,为什么绝对定位,top:0px  实际PS测量多了3PX?谢谢


。_玻璃心。_玻璃心2832 days ago2092

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-10-30 17:09:24

    To make a digression, if the value is 0, it is strongly recommended not to add the unit px


    reply
    0
  • 数据分析师

    数据分析师2017-10-01 01:07:51

    Teacher and classmates, why is absolute positioning, top:0px, the actual PS measurement 3PX more? Thank you - PHP Chinese website Q&A - Teachers and classmates, why is absolute positioning, top:0px, the actual PS measurement 3PX more? Thank you - PHP Chinese website Q&A

    Take a look and learn.

    reply
    0
  • PHP中文网

    PHP中文网2017-03-27 09:19:20

    最好直接贴代码,不要截图。加  

    box-sizing:border-box;

    试试

    reply
    1
  • Cancelreply