【发布时间】:2013-03-30 17:30:58
【问题描述】:
我正在开发的应用程序有许多带有透明区域的图像(因此我们可以通过设置background-color CSS 属性使图像“蒙皮”)。
这在我测试过的所有浏览器中都可以正常工作,除了 windows phone,我们会在图像边缘周围出现令人讨厌的伪影 - 像素 - 图像顶部和底部的细线,有时在图像的两侧.
我尝试将padding、margin、border 设置为 0px,但工件仍然存在。
以下问题建议设置background-repeat: no-repeat,但这似乎只适用于background-image,不适用于background-color:
Windows Phone IE mobile bugs with transparent background-image and bottom absolute positionning
有谁知道如何覆盖或禁用此边框?
【问题讨论】:
-
尝试使用带有
display: block;的图片 -
你试过添加透明边框吗?
标签: css windows-phone-7 internet-explorer-9 background-color