【发布时间】:2014-08-03 20:06:28
【问题描述】:
我的网站模板是基于 bootstrap 的,在导航菜单中,我使用了下面的代码来实现一些效果!
$('.productbar .dropdown').on('show.bs.dropdown', function (e) {
$(this).find('.dropdown-menu').first().stop(true, true).fadeIn(300);
$(this).find('.dropdown-menu').first().stop(true, true).animate({ top: "45px" }, 300);
});
$('.productbar .dropdown').on('hide.bs.dropdown', function (e) {
$(this).find('.dropdown-menu').first().stop(true, true).fadeOut(300);
$(this).find('.dropdown-menu').first().stop(true, true).animate({ top: "55px" }, 300);
$(this).find('.sub-menu').hide();
$(this).find('.left-caret').addClass("right-caret").removeClass("left-caret");
});
触发操作按钮后,updatepanel 将触发,之后菜单效果不起作用!
解决办法是什么?
【问题讨论】:
-
那么问题是什么?请说明清楚。数据不足和不清楚:(
-
对不起我的朋友,帖子已编辑:)
标签: javascript asp.net twitter-bootstrap-3 updatepanel