Thin gray/black lines on web page viewed with iPad

后端 未结 11 2231
南旧
南旧 2020-12-13 22:07

We\'re finding the the iPad is displaying thin grey/black lines on our site. It seems to be some form of scaling-artefact on mobile Safari. I\'ve provided two snippets of

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 22:23

    I tried a bunch of fixes to remove these grey-ish tiny lines when mobile-safari was zoomed in, and the simplest and most flexible fix I found was here:

    http://www.oddodesign.com/2010/css-tip-how-to-prevent-div-seam-lines-from-appearing-in-apples-mobile-safari/

    Essentially, you add

    margin-bottom:-1px;
    

    To elements that are getting phantom line borders added.

提交回复
热议问题