我正在使用 SimpleJqueryDropdown 菜单..
我在 IE7 和 8 上进行测试。当我将鼠标悬停在超链接上的下拉菜单上时,它会消失。 我试过 z-index 但它在 IE 中不起作用..
有人遇到过这个问题吗??
最佳答案
我以前遇到过这个问题。使用此 jquery 片段修复它。下面的代码片段解决了我在 this site 中的问题.
<!--[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]-->
关于css - IE后面有链接时下拉菜单消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4507186/