$('#nav a[href][title]').qtip({
content: {
text: false // Use each elements title attribute
},position: {
corner: {
target: 'topLeft',tooltip: 'middleRight'
}
},style: {
name: 'dark',width: 230,padding: 3,bottom: 10,textAlign: 'center'
}
// Give it some style
});
我想模拟:css:position:relative; bottom:10px所以工具提示与目标垂直对齐(见图),但我无法完成它
这样试试
$('#nav a[href][title]').qtip({
content: {
text: false // Use each elements title attribute
},position: 'relative',textAlign: 'center'
}
// Give it some style
});
我怎样才能做到这一点?
编辑
$('#nav a[href][title]').qtip({
content: {
text: false // Use each elements title attribute
},position: {
adjust: {
x: 10px,y: 10px
},corner: {
target: 'topLeft',tooltip: 'middleRight'
}
},textAlign: 'center'
},// Give it some style
});
最佳答案