Я испытываю некоторые затруднения изменить размер подсказки 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'
}
}
});
это достаточно просто:
$("#mytip").qtip({style: { tip: { size: { x: 10, y: 10}} }});
Понятно!
$('.status[title]').qtip({ style: {background:'#333333', color:'white', textAlign:'center', border:{width: 1, radius: 5, color: '#333333'}, tip:{corner:'leftMiddle',size: { x:6,y:10 }} }, position: {corner: {target:'rightMiddle',tooltip:'leftBottom'}} });
Спасибо, StackOverflow, за то, что иногда резиновый утенок :)