Debugging mobile pages with chrome devtool, switching between mobile devices and zooming, will cause gaps in the vertical direction of the div

  1. when I debug a mobile page with chrome"s developer tool, switching between mobile devices and scaling sometimes results in gaps in the vertical direction of the div that reveal the white background of the parent section. But I"ve made sure that border, marin, and padding are all zero. The following four pictures (switch different devices and zoom)

----------

----------

----------

Mar.04,2021

Don't worry about it, because the simulator is only rounding when it compresses 1 pixel

Menu