Single/sub pixel misalignment of divs on ipad and iphone safari

后端 未结 8 737
粉色の甜心
粉色の甜心 2020-12-23 12:20

I\'ve got the following situation, and I need some help...

  1. Two divs, same size, same location, one on top of the other
  2. Everything works as expected on
8条回答
  •  别那么骄傲
    2020-12-23 12:28

    I also solved the iOS sub pixel gap issue (on a full screen site) by using overflow-x: hidden; to stop side ways scrolling & viewpoint scale to stop pitch zooming. I also had holder divs set at width: 101%; and all the elements/image divs inside set to float: left;. This means the sub pixel gaps are all on the left hand site but pushed out of view by the holder div set at 101% width.

提交回复
热议问题