开发者

Dropdown menu + slideshow in content z-index issue

开发者 https://www.devze.com 2023-01-04 10:05 出处:网络
I\'m having a problem where a slideshow (using jQuery Cycle) gets rendered in front of a dropdown menu in the navigation.

I'm having a problem where a slideshow (using jQuery Cycle) gets rendered in front of a dropdown menu in the navigation.

The weird thing is that everything works in Internet Explorer but in Firefox, Chrome and other decent browsers.

I suppose this has to do with z-index, but I'm not sure how to fix it.

You can view the code on http://jsfiddle.net/aEdAi/.

  • Try hovering the third navigation menu item to see the dropdown menu.
  • You can set class="hover" on the third <li>开发者_运维知识库 in the navigation using Firebug to visually ‘lock’ the hover state and debug.

How can I fix this? The dropdown menu always needs to be on top of the slideshow.


hi if you set your div intro-wrapper with

#intro-wrapper { height:390px; position:relative; z-index:0; }

it work...

0

精彩评论

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