IE8 - jQuery:position()。left'为null或不是对象

时间:2012-02-27 15:08:57

标签: jquery internet-explorer-8 position

这是导致问题的代码行。我搜索了谷歌类似的问题,并尝试将'x'和'y'替换为'_x'和'_y',但仍然没有豆

x = $(display).position().left + $(display).width() - 84,

以下是与此问题相关的其余功能

      function displayLinks(img,row) {
            var num = $(img).attr('num'),
                display = $('img.gDisplay'),
                x = $(display).position().left + $(display).width() - 84,
                y = row == 0 ? op.height - 84 : - (rows - row - 1) * (op.height + op.margin) + op.height - 84;
            var more = $('<div class="hover-link rounded" id="more-' + num + '" />').css({
                left:x,
                top:y
            }).appendTo( $('ul#row-0') );
            ...
       } 

0 个答案:

没有答案