我正在开发的应用程序有许多带有透明区域的图像(因此我们可以通过设置background-color
CSS属性使图像变成皮肤)。CSS + WinPhone IE:添加背景色到img的工件
这在我测试过的每个浏览器中都能正常工作,除了windows phone,我们在图像的边缘周围出现了令人讨厌的文物 - 顶部和底部以及有时在两侧的像素细线图片。
我试过将padding
,margin
,border
设置为0px,但是这个神器依然存在。
以下问题建议设置background-repeat: no-repeat
,但似乎只为background-image
工作,否B ackground-color
:
Windows Phone IE mobile bugs with transparent background-image and bottom absolute positionning
有谁知道如何重写或禁用此边界?
尝试使用与图像'display:block;' – skobaljic 2013-09-19 11:31:08
您是否尝试添加透明边框? – monners 2013-12-16 07:48:56