【问题标题】:popover-append-to-body attribute for a popover element doesn't seem to work in angular-uipopover 元素的 popover-append-to-body 属性似乎在 angular-ui 中不起作用
【发布时间】:2013-12-03 09:17:44
【问题描述】:

我正在使用角度 UI。 (docs, github)

我想制作一个附加在正文上的弹出框。

但是我尝试了这个属性,并且我的弹出框没有附加在正文上。 (请注意,其他属性,例如 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


    【解决方案1】:

    看起来它适用于最新版本的 angular ui。

    this plunker 中它确实有效。 (点击运行,然后点击dynamicPopoverText,然后检查弹出框,看看它确实在body下方)。

    编辑:问题是在我的项目中,我使用的是 angular-ui 0.1.0 而不是 angular-ui 0.4.0

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-28
    相关资源
    最近更新 更多