0

我想在道场图表上显示图像。为此,我使用以下代码

var l_images = ["images/clearnight.png","images/clear.png","images/partlyCloudy.png","images/cloudy.png","images/showers.png","images/rain.png","images/thunderstorms.png","images/ice.png","images/flurries.png","images/snow.png","images/partlyCloudynight.png"];
        var d = new dojo.Deferred();
        for(var i=1 ; i < conditionData.length-1 ; i++ ) {
            var l_con_map = conditionData[i];
                        var l_image_id = "image"+i;
            try {
                dojo.create("img", {src: l_images[l_con_map.conditon]}, dojo.byId(l_image_id));
            } catch(e) {

                d.errback(e);
            }
        }

每个 l_image_id 都是一个带有 css 的 div。例如 :

而CSS是

.zdiv1css {
    position:absolute;
    top:240px;
    right:0px;
    left:190px;
    width:200px;

}

它适用于 IE9 和 chrome,但 IE8 不显示任何图像。

请帮助我提前谢谢

4

1 回答 1

0

.........................................................

添加

z-index:999 

像这样

.zdiv1css {
z-index:999;
}
于 2012-09-26T06:09:15.473 回答