还有另外一个原因了。 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>
什么*所有建议*你试过吗? –
难道你没有一个代码给我们看? –
这里是我的代码:http://jsfiddle.net/brunodd/8tyxyfds/ – brunodd