在Twitter Bootstrap框架中,Twipsy和Popover插件都列出了'manual'作为触发工具提示的选项。如何使用手动选项(即实际效果是什么 - 如何激活工具提示)?
答案
这就是我最终使用的(利用'切换'):
jQuery(document).ready(function($) {
$('.popup-marker').popover({
html: true,
trigger: 'manual',
}).click(function() {
$(this).popover('toggle');
});
});
答案 0 :(得分:10)
你可以用以下方式激活它:
$('#element').twipsy('show')
然后隐藏:
$('#element').twipsy('hide')