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

后端 未结 8 688
粉色の甜心
粉色の甜心 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:30

    I'd try playing with meta/viewport options, specifically setting initial scale to 1.0 and disabling user zooming.

    https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html

    0 讨论(0)
  • 2020-12-23 12:34

    I also had to solve this. If you are using Div's to define sections only then.

    //background.css
    .background-color {
      background-color: blue;
    }
    .background-color div {
      background-color: inherit;
    }
    
    0 讨论(0)
提交回复
热议问题