1
我有这样的代码运行 -Qtip2工具提示没有定位
$(".imgClass").each((elem,value)->
imgSrc = $(value).attr("src")
$(value).qtip({
content: "<img src=" + imgSrc + ">"
position:{
corner:{
target:'leftTop',
tooltip:'bottomRight'
}
}
})
)
的IMG显示了罚款,但提示始终定位在目标的右下方,为oppposed到leftTop。
我认为这可能是一个语法错误 - 任何人都可以帮忙吗? (此外,这是写在CoffeeScript中,因此没有; S,但我已经把括号,因为我仍然在咖啡不清楚)
感谢
您是否正在预加载图片? – Mottie