这是 superfish 菜单插件的 jquery 代码(经过我的一些修改)。我正在寻找添加一种效果(通过超级鱼或偶然),这将导致子菜单在鼠标悬停时向上滑动(就像当您将鼠标悬停在菜单顶部时它们向下滑动一样)。
jQuery("ul.sf-menu").supersubs({
minWidth: 12, // minimum width of sub-menus in em units
maxWidth: 27, // maximum width of sub-menus in em units
extraWidth: 1 // extra width can ensure lines don't sometimes turn over
// due to slight rounding differences and font-family
}).superfish({
delay: 700, // delay on mouseout
animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation
speed: 'fast', // faster animation speed
autoArrows: true, // disable generation of arrow mark-up
dropShadows: false // disable drop shadows
});