http://testserver.davidbenrimon.com/artists.html
如何让右上角的过滤器始终可见而不是折叠起来?
最佳答案
在您的 custom.js
文件中,删除此行:
$itemsFilter.find('a').not('.active').hide();
要删除鼠标事件,请在该行下方删除以下内容:
// On mouseover (hover)
$itemsFilter.on('mouseenter', function() {
var $this = $(this);
clearTimeout( mouseOver );
// Wait 100ms before animating to prevent unnecessary flickering
mouseOver = setTimeout( function() {
if( $(window).width() >= 960 )
$this.find('li a').stop(true, true).slideHorzShow(300);
}, 100);
}).on('mouseleave', function() {
clearTimeout( mouseOver );
if( $(window).width() >= 960 )
$(this).find('li a').not('.active').stop(true, true).slideHorzHide(150);
});
关于javascript - 如何防止我的过滤器列表崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46062826/