论坛首页 Web前端技术论坛

请教一个Prototype在Firefox下的兼容问题

浏览 2416 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-09-19  
最近在写一个类似阿里巴巴左侧二级类别的效果,用到了prototype.js,但是却发现下面的代码在Firefox下没有效果:

    nodes.each(function(node){
        node.style.top = Position.cumulativeOffset($(mainleft))[1] + 48 + i*21 + 'px';
        node.style.left = Position.cumulativeOffset($(mainleft))[0] + 220 + 'px';
        i++;
  });


具体就是Position.cumulativeOffset($(mainleft))在Firefox下没有值。请问各位高手有没有遇到这个问题,怎么解决?谢谢!
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics