开发者

Text won't be shown in IE

I have the following problem:

When I click on a button I want a layer to be shown which shows some text. The div layer is under the text. And will be shown like that. But the IEs are not showing any text at all.

The JavaScript is pretty straight forward.

document.getElementById("layerUnderText").style.display = "block";
document.getElementById("TextOnLayer").style.display = "block";

The layer is just a graphic. In CSS the layer has a z-index of 100 and th开发者_如何学运维e text of 150. Everything is working fine, except in all versions of IE. Where ist he problem?

Thanks


Try giving the text layer a

position: relative;

within the CSS declaration. Often helps in situations like this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜