Css 当IE中有链接时,下拉菜单消失
我正在使用SimpleQueryDown菜单 在IE7和IE8上进行im测试。当我将鼠标滑过超链接上的下拉菜单时,它消失了。 我试过z-index,但它在IE中不起作用Css 当IE中有链接时,下拉菜单消失,css,drop-down-menu,Css,Drop Down Menu,我正在使用SimpleQueryDown菜单 在IE7和IE8上进行im测试。当我将鼠标滑过超链接上的下拉菜单时,它消失了。 我试过z-index,但它在IE中不起作用 有人有这个问题吗?我以前有过这个问题。使用此jquery代码段修复了它。下面的代码片段修复了中的问题 <!--[if lte IE 7]> $(document).ready(function() { // lower the z-index to negative to fix the overlappin
有人有这个问题吗?我以前有过这个问题。使用此jquery代码段修复了它。下面的代码片段修复了中的问题
<!--[if lte IE 7]>
$(document).ready(function() {
// lower the z-index to negative to fix the overlapping drop-down menu problem
// for IE browsers only
// the check for support of leading white space should give us false for IE 6-8
if(!jQuery.support.leadingWhitespace){
$('.post-header').css('z-index', -2);
$('.container').css('z-index', -2);
}
});
</script>
<![endif]-->