2015-06-09 123 views
0

有谁知道如何使引导酥料饼之上吧?引导酥料饼:对齐右上方

jsfiddle

$('.well').each(function() { 
    var $this = $(this); 

    $this.popover({ 
     placement: 'right', 
     html: true, 
     content: $this.find('.tip').html() 
    }) 
}); 

这就是我要做的:

enter image description here

取而代之的是:

enter image description here

我已经尝试了很多的建议,但任何人都不幸工作。

+0

什么*所有建议*你试过吗? –

+0

难道你没有一个代码给我们看? –

+0

这里是我的代码:http://jsfiddle.net/brunodd/8tyxyfds/ – brunodd

回答

0

还有另外一个原因了。 Bootstrap有一个错误!更新Bootstrap CSS以使其工作。请点击此处查看Fiddle


data-container="body"更改为您的父母。你必须显示你的代码才能获得帮助!在你的代码,使用方法:

data-container="parent-selector" // Instead of the default! 

documentation说:

追加酥料饼到一个特定的元素。例如:容器:'body'。此选项,因为它可以让你的酥料饼在触发元件附近的文档流定位特别有用 - 这将防止酥料饼从一个窗口大小调整期间浮动从触发单元分离。

<button type="button" class="btn btn-default" data-container="#idofparent" 
     data-toggle="popover" data-placement="top" 
     data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> 
    Popover on top 
</button> 
+0

这里是我的代码:http://jsfiddle.net/brunodd/8tyxyfds/ – brunodd

+0

@brunodd更新您的引导人... HTTP:// jsfiddle.net/8tyxyfds/2/ –

+0

是它的更新 – brunodd