【发布时间】:2016-06-14 18:08:57
【问题描述】:
我在一个页面上有多个独特的弹出框,需要在单击除弹出框当前处于活动状态之外的任何位置时隐藏它们。弹出框比标准实现稍微复杂一点,所以我所知道的让它们隐藏的方法并不适用。
$('.popover-markup > .trigger').popover({
html : true,
title: function() {
return $(this).parent().find('.head').html();
},
content: function() {
return $(this).parent().find('.content').html();
},
container: 'body',
placement: 'right'
});
【问题讨论】:
标签: javascript html twitter-bootstrap popover