如何在不丢失测试文本且不克隆的情况下将方向从“n”更改为“w”?
$(".tipsy").live('mouseover',function() {
$(this).tipsy({gravity: "n", html: true});
$(this).tipsy("show");
});
$(".tipsy").live("click",function() {
$('.tipsy').remove();
$(this).tipsy({gravity: 'w', html: true});
$(this).tipsy("show");
});
<div class="tipsy" title='<u>test link</u>'>TestTestTestTestTestTestTestTestTestTestTest</div>
这是一个小提琴:http: //jsfiddle.net/nQvmw/23/