2

I'm having the following problem in IE10 under Windows8, just using plain and simple div with a repeat-x background and when using a transparent png artifacts appear.

Results: http://s18.postimg.org/9tn3dlsqx/artifacts.png

Here's sample code:

CSS

div.field { height: 762px; background-image: url(../img/background_grass.png) repeat-x; width: 5000px; left: -700px; position: absolute;  }
div.graphics { overflow: hidden; width: 3840px; position: absolute; background: url(../img/path_1.png); height: 640px; top: 315px; left: -1000px;}

And the html

<!DOCTYPE html>
<html>
<head>
    <title>MyForest - Идея по-чисто</title>
    <meta charset="UTF-8" />
    <link href="styles/styles.css" rel="stylesheet" />
</head>

<body>
    <div class="field"></div>
    <div class="graphics"></div>
</body>

4

1 回答 1

1

我有同样的问题。尝试更改图像的高度或宽度。

重复时具有一定的高宽比的大型 png 背景图像似乎会发生这种情况。在我的例子中,图像是 2000px 宽 x 1000px 高,背景的右侧最终重叠了 88 像素(背景最终是 2088 像素。在我的例子中,我使用的是带有稍微透明的环绕图形的透明 png。更奇怪的是,如果我将图像设置为 2000 像素乘以 2000 像素,问题就会消失。

太糟糕了...我希望 IE 在版本 10 中有所改进,我们不必再处理这些怪癖了。

于 2013-10-04T03:19:29.743 回答