开发者

Superfish dropdown goes behind when published to server on IE

开发者 https://www.devze.com 2023-02-14 19:24 出处:网络
Its fine when I run it on Visual Studio but then it goes b开发者_运维知识库ehind if deployed to web server on IE. It works perfectly with Mozilla.I found that the technique with IE was to supersede vi

Its fine when I run it on Visual Studio but then it goes b开发者_运维知识库ehind if deployed to web server on IE. It works perfectly with Mozilla.


I found that the technique with IE was to supersede via its z-index and making the div at position:relative. See code example below.

Given this HTML.

<div id="header">
    <ul class="sf-menu"></ul>
    <div id="content"></div>
</div>

And, the CSS..

#header{z-index:2;position:relative;
}
#content{z-index:1;position:relative;
}

Then the superfish dropdown in IE should now always be on top of content.

0

精彩评论

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