Line artifacts in mobile Safari

后端 未结 6 1121
灰色年华
灰色年华 2020-12-18 04:39

Safari renders black lines in between divs on my website at some scales. It is particularly bad when it breaks apart an image that is chopped in two different divs for a but

6条回答
  •  太阳男子
    2020-12-18 05:10

    This issue is a result of a rounding error produced in mobile safari when it rescales background images for display (it's a bug: http://openradar.appspot.com/8684766).

    The solution is to increase the width of your right-button edge on its left side by 1 or 2px. Then adjust your CSS accordingly so the 1 or 2 pixels you added are not displayed by default.

提交回复
热议问题