【发布时间】:2013-12-03 09:17:44
【问题描述】:
我想制作一个附加在正文上的弹出框。
在纯引导程序中,您必须使用
container: 'body'以便将弹出框附加到主体元素而不是弹出框的父元素上。 (见http://getbootstrap.com/2.3.2/javascript.html#popovers)在 Angular UI 中,您应该使用
popover-append-to-body(参见 http://angular-ui.github.io/bootstrap/#/popover)。
但是我尝试了这个属性,并且我的弹出框没有附加在正文上。 (请注意,其他属性,例如 placement='right' 确实有效。)
弹出框的 HTML:
<a popover="click me" popover-placement='bottom' popover-append-to-body='true'>
popover text
</a>
注意:在source 中,我没有找到与popover-append-to-body 相关的任何内容
【问题讨论】:
标签: angularjs twitter-bootstrap popover angular-ui