Twitter bootstrap 引导popover放置不正确
我使用的是Bootstrap 2.3.2。我从bootstrap网站上抓取了一些代码以确保代码正确,但我仍然无法更改位置 这里有一把小提琴来说明问题所在: JavaScript可能不正确吗Twitter bootstrap 引导popover放置不正确,twitter-bootstrap,popover,Twitter Bootstrap,Popover,我使用的是Bootstrap 2.3.2。我从bootstrap网站上抓取了一些代码以确保代码正确,但我仍然无法更改位置 这里有一把小提琴来说明问题所在: JavaScript可能不正确吗 $(function () { $('body').popover({ selector: '[data-toggle="popover"]' }); }); 这是javascript。这修正了它: $("a[data-toggle=popover]") .popov
$(function () {
$('body').popover({
selector: '[data-toggle="popover"]'
});
});
这是javascript。这修正了它:
$("a[data-toggle=popover]")
.popover({ //Initializes popover and pass options
animation: true,
trigger: 'manual'
})
.click(function(e) {
e.preventDefault();
$(this).popover('toggle');
e.stopPropagation();
}))