我正在使用qtip作爲工具提示,並且我基於光標移動了工具提示。我應該調用函數來將箭頭指針從左到右,然後從右到左動態地移動。鋤頭是否會將鼠標移動時的尖端左側位置從10%更改爲95%。如何根據鼠標移動qtip提示
jQuery('.fire-object a img').each(function() {
jQuery(this).qtip({
// within an each() loop, $(this) refers to the trigger
content: jQuery(this).attr('title'),
style: {
width: 110,
padding: 5,
background: '#FFFFFF',
color: 'black',
textAlign: 'center',
border: {
width: 7,
radius: 5,
color: '#FFFFFF'
},
tip: 'bottomLeft',
name: 'dark' // Inherit the rest of the attributes from the preset dark style
},
position: {
my: 'left top',
target: 'mouse',
viewport: $(window), // Keep it on-screen at all times if possible
adjust: {
x: 10, y: 10
}
},
hide: {
fixed: true // Helps to prevent the tooltip from hiding ocassionally when tracking!
}
});
});
example 任何想法?提前致謝。
你是目前的代碼是什麼? – bobthyasian
這是我的代碼 – jackyesind