开发者

Annimation Issue for IE7 and not IE8

I have an implementation of Animati开发者_运维问答on.

This functions correct in IE8 and Firefox, however this doesnt work in IE7.

http://www.davincispainting.com/generalcontact.aspx

For some reason the Annimation scrolls over top of the Purple Div for IE7, when it should start behind it, as demonstrated in IE8. Why is that?

Annimation Issue for IE7 and not IE8


Try setting the div where the animation exists to -1 like this:

z-index:-1;

UPDATE

Box 1 will be the box with the animation:

<html>
<head>
<style type="text/css">
#box1
{
width:200px;
height:200px;
position:absolute;
z-index:-1;
background-color:red;
top:0;
left:100;
}
#box2
{
width:200px;
height:200px;
z-index:1;
background-color:blue;
}
</style>
</head>

<body>
<div id="box1">
</div>
<div id="box2">
</div>
</body>
</html>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜