Mat*_*AVM 5 html javascript css jquery area
我在我的区域地图中有一个tooltop,我已经完成了我正在使用http://qtip2.com/
当我调用工具提示时,我的代码与地图区域标签上的此问题工具提示中的代码相同
jQuery(document).ready(function (e) {
jQuery('area').qtip({
style: {
classes: 'qtip-dark'
},
events: {
show: function(event, api) {
api.set({
'content.text': api.elements.target.attr('title')
});
}
}
});
});
Run Code Online (Sandbox Code Playgroud)
但是我的工具提示始终位于我所在区域的右下角,有什么方法可以让它放在我的右上角吗?
感谢 Chiral Patel 的评论,我找到了一种方法,谢谢!
jQuery(document).ready(function (e)
{
jQuery('area').qtip({
style:
{
classes: 'qtip-default qtip qtip-light qtip-rounded',
width: '250px',
height: '70px',
},
position:
{
my : 'bottom left',
at: 'top right',
method:'none'
},
events:
{
show: function(event, api)
{
api.set
({
'content.text': api.elements.target.attr('title')
});
}
}
});
});
Run Code Online (Sandbox Code Playgroud)