我想使用AngularStrap Popover从文本元素触发一个弹出器。有可能从锚上触发弹跳吗?或者是跨度单元之类的?
这样做是可行的:
<button content="hello" trigger="focus" bs-popover>clickme</button>但这并不是:
<a href="" content="hello" trigger="focus" bs-popover>clickme</a>
<span href="" content="hello" trigger="focus" bs-popover>clickme</span>
<label href="" content="hello" trigger="focus" bs-popover>clickme</label>
<small href="" content="hello" trigger="focus" bs-popover>clickme</small>我找不到一个如何做这件事的例子,这是一个锚--无论是可能还是不可能。(span元素对我来说这似乎是个很愚蠢的问题,但我真的找不到合适的答案。
非常感谢!
发布于 2014-09-07 21:52:11
问题是trigger='focus'适用于可聚焦的元素;按钮是可聚焦的,锚点和跨度不是。试试trigger='hover',或者trigger='click',您可以检查我的柱塞:http://plnkr.co/edit/4oi1ucgQa6zqhQSlVhzu
https://stackoverflow.com/questions/25700279
复制相似问题