我試圖理解別人的代碼...他有如下:jQuery的位置片斷問題
var positionAt = horizontalPosition + ' ' + verticalPosition;
var positionOffset = String(horizontalOffset + ' ' + verticalOffset);
//i don't understand the codes below. I don't think Jquery position method support at and of attribues....
$tooltipElement.position({at: positionAt, of: $element, my: 'left top', offset: positionOffset});
$element.hover(function(){
$instance = $(this).css({'cursor': 'pointer'});
$('#tooltip-' + $instance.attr('id')).fadeIn('fast');
}, function(){
$instance = $(this).css({'cursor': 'auto'});
$('#tooltip-' + $instance.attr('id')).fadeOut('fast');
});
我不知道什麼與AT,和我的屬性位置的方法。任何人都可以幫助我嗎?非常感謝。