【发布时间】:2019-03-03 15:34:32
【问题描述】:
JSFiddle:http://jsfiddle.net/L4tjpsbn/
我有一个使用手动模式实现的引导弹出窗口,以便允许在外部的任何地方关闭(外部点击关闭)。
它可以在除 Safari 之外的任何地方使用。在 Safari 中,在 Mac 笔记本电脑上,一旦弹出窗口打开,我无法通过外部点击关闭它。我只能通过再次单击源按钮来关闭它。
有什么想法吗?
// Initialize Button popover, whose contents comes from a DIV
$('#delegatorInfoButton').popover({
trigger: 'manual',
html: true,
title: '<span style="font-weight: bold;">TITLE</span>',
content: function() {
return $('#delegatorInfoButtonPanel').html();
}
});
// Manual handling of Button popover: dismiss on (1) Outside click as well as (2) next Button click
$('#delegatorInfoButton').click(function() {
$(this).popover('toggle');
}).blur(function() {
$(this).popover('hide');
});
【问题讨论】:
标签: jquery twitter-bootstrap twitter-bootstrap-3 popover