开发者

Son of Suckerfish Menu IE6 - menu hiding behind content

开发者 https://www.devze.com 2022-12-13 17:07 出处:网络
Page - http://blu-eye.com/index.html - contains suck开发者_如何转开发erfish menu which is displaying correctly on the rest of the site, except for this page. The menu items are hidden behind the conte

Page - http://blu-eye.com/index.html - contains suck开发者_如何转开发erfish menu which is displaying correctly on the rest of the site, except for this page. The menu items are hidden behind the content below.

The content below it contains a javascript slider with image and text. I've tried changing the z-indexes on majority of elements, but still having no luck.

It only occurs in IE (6 and 7).

Please help!


The drama you have is the use of relative positioned elements, which reset the z-order context on < IE8.

Specifically on div#header, remove the position relative. then on div#cat_528463_divs > ul > li set a z-index (of 1000 for eg). This will fix the nav issue from tucking in under the JS slider – however it will screw up the look of the rest of the top section, because they are absolutely positioning the logo and some other images. So that is going to need to be rebuilt.


IE has a slightly different stacking order of elements so just setting something with a different z-index will not necessarily move it above.

Taking your starting point as your wrapper, add position:relative to it and then work down into your HTML. If you imagine that at your start point, then you need to get your menu div and your slider div to at least the same 'depth'.

You might find adding position:relative to #content as well might help.

You can then change the z-indexes.


Add z-index:100 to the submenu's li's

#nav_528463 li ul li {
  -moz-background-clip:border;
  -moz-background-inline-policy:continuous;
  -moz-background-origin:padding;
  background:transparent none repeat scroll 0 0;
  float:none;
  margin:0;
  padding:0;
  z-index:100
}


I found this bit of jQuery very handy for your problem:

http://www.vancelucas.com/blog/fixing-ie7-z-index-issues-with-jquery/

0

精彩评论

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