Jquery 如何使引导子菜单与父菜单对齐
我在这里找到了这个JQuery代码。它工作得很好,除了我的子菜单在父菜单的底部打开,而不是向右对齐。有了这个代码Jquery 如何使引导子菜单与父菜单对齐,jquery,html,css,twitter-bootstrap,Jquery,Html,Css,Twitter Bootstrap,我在这里找到了这个JQuery代码。它工作得很好,除了我的子菜单在父菜单的底部打开,而不是向右对齐。有了这个代码 jQuery(document).ready(function ($) { $('.navbar .dropdown').hover(function() { $(this).addClass('extra-nav-class').find('.dropdown-menu').first().stop(true, true).delay(250).slideD
jQuery(document).ready(function ($) {
$('.navbar .dropdown').hover(function() {
$(this).addClass('extra-nav-class').find('.dropdown-menu').first().stop(true, true).delay(250).slideDown();
}, function() {
var na = $(this)
na.find('.dropdown-menu').first().stop(true, true).delay(800).slideUp('fast', function(){ na.removeClass('extra-nav-class') })
});
$('.dropdown-submenu').hover(function() {
$(this).addClass('extra-nav-class').find('.dropdown-menu').first().stop(true, true).delay(250).slideDown();
}, function() {
var na = $(this)
na.find('.dropdown-menu').first().stop(true, true).delay(800).slideUp('fast', function(){ na.removeClass('extra-nav-class') })
});
})
它是否可以扩展,使子菜单滚动到父菜单的右侧而不是父菜单的底部?同时显示HTML和CSS。如果可能的话,如果你能发布一张图片并显示出来就好了。@PraveenKumar-我现在就结束这篇文章。在我试图让它工作的过程中,我已经注释掉了CSS,忘记了它。它的工作原理是一样的。昨晚喝了太多蛋酒:DHa哈。。。圣诞快乐。祝你和你的家人圣诞快乐。