私は他の誰かのコードを理解しようとしています...彼は次のことをしています:
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、of、および私の属性を使用した位置付け方法がわかりません。誰かがそれについて私を助けることができますか?どうもありがとう。