Using Developer toolbar on IE8 , on one page i see that the z-index for a DIV shows as "auto", I went from this element to its parent hierarchy checking if some element has actually defined this attribute(z index) but I did not see any element that has the css style attribute z-index defined/set.
I created a sample page where I did the same thing and it shows me the z-index as 0.
I have not defined my div or any other element to have zindex attribute but still it shows me the z-index as 0.
I am trying to find out why would I get the ZIndex as 0 on one page and Z-Index as "auto" on other when it has not been defined in either of the pages. Here is the sample of the css for that div.
.mydiv
{
position:absolute;
overflow-x:hidden;
overflow-y:auto;
}
thanks
我在这里猜测,但由于position: relative/absolute
会在IE <v9中触发新的z-index堆栈上下文,我怀疑这是区别。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.