我遇到了一个非常奇怪的错误,我的 qtips 突然开始发生:
有人见过这样的东西吗?
$('.vote-up, .vote-down').live('mouseover', function() {
$(this).qtip({
overwrite : false,
content : false,
position: {
corner: {
target: 'bottomMiddle',
tooltip: 'topMiddle'
}
},
show :
{
ready : true,
delay : 100,
effect : { length : 300 }
},
hide : { effect : { length : 300 } },
style: {
padding : 10,
textAlign : 'left',
border : {
width : 8
},
tip : {
corner : 'topMiddle',
size : { x : 25, y : 20 }
},
name : 'cream'
}
});
});
这是html:
<div class="vote-buttons" data-review="<?=$review->id?>">
<button class="vote-up" title="This review was helpful :)">
<span class="arrow">▼</span>
<span class="vote-spinner">
<b><?=$review->usefulness_positive?></b>
</span>
</button>
<button class="vote-down" title="This review was useless :(">
<span class="arrow">▲</span>
<span class="vote-spinner">
<b><?=$review->usefulness_negative?></b>
</span>
</button>
</div>