$('.selector').qtip({
content: {
text: function(api) {
return $(this).children('.tip').clone();
}
},
style: {
classes: 'ui-tooltip-rounded',
width: 210
},
position: {
my: 'bottom center',
at: 'bottom center',
viewport: $(window)
},
hide: {
fixed: true,
delay: 500
},
events: {
show: function(event, api) {
$('.selector').css('border', '1px solid black');
}
}
});
qtip 2 プラグインを使用していますが、すべてのセレクターではなく特定のセレクター ('this') を変更したいと考えています。
上記のコードは、ページ上のすべての「ヒント」アイコンの周りに黒い境界線を描画します...特定の「ヒント」グラフィック (「.selector」) を参照する方法 (qtip2 を使用) はありますか?