A 1 pixel gap only coming on iPad but fine on Safari and Chrome

后端 未结 7 1619
悲哀的现实
悲哀的现实 2021-02-01 18:00

Here at this line after clouds which will be only visible in iPad or iPhone. Any idea how to solve it?

It\'s fine in all other desktop browsers.

7条回答
  •  走了就别回头了
    2021-02-01 18:26

    This seems to be a bug of the WebKit rendering engine on the iPad, when the page scale factor is less than 1.0. If you keep the page scale factor above 1.0, then the pixel gap does not show up. This can be done with a meta tag:

    
    

    I also found a simple page that demonstrate a similar issue (a rendering glitch on iPad only):

    • Rounding error with widths

    In the past, there have been a number of bugs reported for rounding issues in the WebKit engine:

    • WebKit Bug #5531
    • WebKit Bug #14956
    • WebKit Bug #18013

提交回复
热议问题