[英]Two horizontal lines with Mega Drop Down Menu
如果此菜單旨在以這種方式使用,我並不滿意,但是您可以執行以下操作:
$('#mega-menu-1').dcMegaMenu({
rowItems: '3',
speed: 0,
effect: 'slide',
event: 'hover',
fullWidth: true,
beforeOpen: function() {
$(this).find(".mega").css("top", 40 + $(this).offset().top-$(this).parent().offset().top);
}
});
基本上改變菜單頂部beforeOpen
根據所選擇的菜單項的偏移。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.