Can't get CSS drop down nav to go over content

穿精又带淫゛_ 提交于 2019-12-24 05:02:04

问题


Ok, I have tried everything I can think of and can't get z-index:1; to put my drop down menu on top of the content and page title. Can someone please take a look and tell me what I have wrong?

Thanks so much (in advance)

http://jsfiddle.net/kreali/cDgH2/


回答1:


Your div.myMain have z-index:1000; so your #nav_home must have bigger z-index! Put z-index: 9999; on #nav_home. Here is edited fiddle http://jsfiddle.net/cDgH2/1/




回答2:


Like this? http://jsfiddle.net/joplomacedo/cDgH2/2/

You had the z-index on div.myMain set to 1000, which was higher than the z-index: 1 on the #nav_home.



来源:https://stackoverflow.com/questions/11764192/cant-get-css-drop-down-nav-to-go-over-content

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!