Tom*_*ash 6 javascript jquery tooltip qtip
我在修改qTip的笔尖大小(x,y)时遇到了一些麻烦.我尝试以style: { tip: { x:2,y:2 } }各种方式添加,但失败了.
如何将其添加到以下脚本?
// Status Tooltips Style
$.fn.qtip.styles.statusTooltips = {
background: '#333333',
color: 'white',
textAlign: 'center',
border: {
width: 1,
radius: 5,
color: '#333333'
},
tip: 'leftMiddle',
name: 'dark'
}
// Status Tooltips Init
$('.status[title]').qtip({
style: 'statusTooltips',
position: {
corner: {
target: 'rightMiddle',
tooltip: 'leftBottom'
}
}
});
Run Code Online (Sandbox Code Playgroud)
Nil*_*ils 10
它足够简单:
$("#mytip").qtip({style: { tip: { size: { x: 10, y: 10}} }});
Run Code Online (Sandbox Code Playgroud)
http://craigsworks.com/projects/qtip/docs/tutorials/#tips