Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何同时显示页面上的所有弹出框?
假设您的 HTML 如下所示:
<a href="#" rel="popover" title="My nicer popover text">hover over me</a>
您应该将trigger选项设置为manual并无条件地显示您的弹出框:
trigger
manual
$('[rel=popover]').popover({'trigger': 'manual'}); $('[rel=popover]').popover('show');