Set the trigger
option of the popover to hover
instead of click
, which is the default one.(将弹出窗口的trigger
选项设置为hover
而不是click
,这是默认值 。)
This can be done using either data-*
attributes in the markup:(这可以使用标记中的data-*
属性来完成:)
<a id="popover" data-trigger="hover">Popover</a>
Or with an initialization option:(或者使用初始化选项:)
$("#popover").popover({ trigger: "hover" });
Here's a DEMO .(这是一个演示 。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…