网友您好, 请在下方输入框内输入要搜索的题目:
YoucreateaWebpagethatcontainsdrop-downmenusthataredefinedbyusingdivtagsinthefollowingcode.YouneedtowriteaJavaScriptfunctionthatwillenablethedrop-downmenustoactivatewhentheuserpositionsthemouseoverthemenutitle.Whichcodesegmentshouldyouuse?()
A.$(".dropdown-menu").hover(function(){$(".menu-items").slideDown(100);},function(){ $(".menu-items").slideUp(100);});
B.$(".dropdown-menu").hover(function(){$(".menu-items",this).slideDown(100);},function(){$(".menu-items",this).slideUp(100);});
C.$(".dropdown-menu").hover(function(){$(this)".slideDown(100);},function(){$(this).slideUp(100);});
D.$(".dropdown-menu").hover(function(){$("this.menu-title",).slideDown(100);},function(){$("this.menu-title",).slideUp(100);});
参考答案