開我有一些jQuery代碼看起來像這樣:獲取酥料餅留在jQuery的
// compile template through underscore templating
var compiledTmpl = _.template(eventTemplate);
// configure popover settings and dynamic mark up
jQuery(this).closest(".item").popover({
trigger:'manual',
html:true,
"content":compiledTmpl(eventData),
"template": popoverTemplate
});
// show the popover
jQuery('.field-content').hover(function(){
jQuery(this).closest(".item").popover('show');
});
jQuery(this).popover().mouseout(function (e) {
jQuery(this).closest(".item").popover('hide');
});
我想有酥料餅保持開放,當我去到老鼠進去,但不管我怎麼努力,它一直躲藏起來。有人知道爲什麼或者有沒有人可以幫助我?
我看到你在說什麼,我仍然覺得我必須保留它作爲懸停選項,點擊不起作用,因爲除了懸停選項之外,它實際上鍊接到另一個頁面。如果您有任何問題,我願意使用任何其他類型的解決方案? – scapegoat17