Home  >  Article  >  Web Front-end  >  IE8标准 z-index_html/css_WEB-ITnose

IE8标准 z-index_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:22:481241browse

css IE8

我弄了个js日历 ,点击图标弹出日历层, 在谷歌 火狐都显示正常  ,但是在IE下调试用IE8标准就出问题了

一部分给下一个div给挡住了 ,  我设置父元素的z-index和position :relative也没有效果
 <div class="whead positionR"><div class="l">                    <div class="cb height10">                         </div>                    <div class="cb height5">                         </div>                    <div class="cb">                        <div id="_calendarTool" class="l hm">                            <a href="#">                                <img src="images/calendar_orange.png" border="0" alt="日历" /></a></div>                        <div class="l span20">                             </div>                    </div>                    <div id="calendarDiv" class="cb positionA hiddenDisplay padding5 backgroundWhite"                          style="max-width:90%">                        <div id="_calendarDiv" class="cb calendarDiv backgroundWhite">                            日历加载...</div>                    </div>                </div>                <div class="clear">                </div>            </div><div>给这个div 挡住了  <table></table></div>

回复讨论(解决方案)

代码贴出来看下

代码贴出来看下  上面不是贴出来了么 positionR 就是position:relative的class名

你给的代码,俺是看不懂。看楼下的兄弟吧

你给的代码,俺是看不懂。看楼下的兄弟吧


   
 日历图标

   
 加载日历。。。。
   //js加载一个日历层



加载的日历给挡住一部分




因为第一行z-index设了-1,比正常的低了。把z-index:-1去掉就行了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn