I am not positive if this menu was designed to be used in this manner but you could do something like:
$('#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);
}
});
Basically to change the menu top beforeOpen
depending on the offset of the menu item selected.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.