Thin gray/black lines on web page viewed with iPad

后端 未结 11 2211
南旧
南旧 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:15

    Since this is triggered by background color just use a 1px gif bg image of the same background color and repeat it. If you use modernizr you can write something like this:

    .touch .class-of-td { background: transparent url(../_img/services/1px-bgfix.gif) repeat; }

    This also works for elements that are displayed table-cell to get vertical-align: middle.

提交回复
热议问题