为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

After version 49.0.1 the menus in our appliccation don't work: http://www.sicris.si. Any hint ?

  • 1 个回答
  • 1 人有此问题
  • 6 次查看
  • 最后回复者为 Paul

more options

We tried to set a higher value to z-index with no succsess.

/* ---------------------------------------------------------------------- */ /* Main Navigation /* ---------------------------------------------------------------------- */

(function() {

var $mainNav = $('#glavna-nav').children('ul');

//$mainNav.css('position', 'absolute'); //$mainNav.css('z-index', '1000'); //$mainNav.children('li').css('z-index', '30000'); //$mainNav.children('li').css('position', 'absolute');


// Regular nav $mainNav.on('mouseenter', 'li', function() { var $this = $(this), $subMenu = $this.children('ul'); if( $subMenu.length ) $this.addClass('hover'); $subMenu.hide().stop(true, true).fadeIn(200);

/* var zIndex = Math.max.apply(null, Array.prototype.map.call(document.querySelectorAll('*'), function(el) { return +el.style.zIndex; })) + 9995 + 10; setTimeout(function() { $(this).css('z-index', zIndex); console.log('zIndex: ' + zIndex); }, 1000); */

}).on('mouseleave', 'li', function() { $(this).removeClass('hover').children('ul').stop(true, true).fadeOut(50); });

})();

/* end Main Navigation */

We tried to set a higher value to z-index with no succsess. /* ---------------------------------------------------------------------- */ /* Main Navigation /* ---------------------------------------------------------------------- */ (function() { var $mainNav = $('#glavna-nav').children('ul'); //$mainNav.css('position', 'absolute'); //$mainNav.css('z-index', '1000'); //$mainNav.children('li').css('z-index', '30000'); //$mainNav.children('li').css('position', 'absolute'); // Regular nav $mainNav.on('mouseenter', 'li', function() { var $this = $(this), $subMenu = $this.children('ul'); if( $subMenu.length ) $this.addClass('hover'); $subMenu.hide().stop(true, true).fadeIn(200); /* var zIndex = Math.max.apply(null, Array.prototype.map.call(document.querySelectorAll('*'), function(el) { return +el.style.zIndex; })) + 9995 + 10; setTimeout(function() { $(this).css('z-index', zIndex); console.log('zIndex: ' + zIndex); }, 1000); */ }).on('mouseleave', 'li', function() { $(this).removeClass('hover').children('ul').stop(true, true).fadeOut(50); }); })(); /* end Main Navigation */

由andrejko于修改

所有回复 (1)

more options

Hi

Thank you for your question. This forum is more for user support issues with Firefox and Mozilla software. With this being more of a developer query, I recommend that you ask in Stack Overflow.

I am sure that one of the experts there should be able to help you.