如何通过点击弹出框外部来关闭Bootstrap弹出框。目前只有开关链接可以打开它。
HTML
HTML
<div class="widget-rating">
<span class="rateit rating-average"></span>
<a class="btn btn-mini" href="javascript:void(0)"><b class="caret"></b></a>
</div>
以下是JavaScript代码:
element.popoverAnchor.popover({
title: "Rating",
animation: false,
html: true,
content: "Loading...",
placement: "bottom",
trigger: "click"
});