iframe不会在Firefox 17中滚动

时间:2012-12-03 16:45:37

标签: javascript html firefox dom

将Firefox升级到17后,iframe滚动停止在我的Web应用程序中工作。我已经读过最新的Firefox(https://wiki.mozilla.org/Gecko:Mouse_Wheel_Scrolling)中鼠标滚轮事件发生了变化,但我不知道为什么会阻止我的iframe滚动。也许是因为我正在使用JavaScript自动创建这个iframe。滚动适用于最新版本的Chrome和旧版本的Firefox。

jQuery:

  var iframe = $(document.createElement("iframe")).attr("src", $(this).attr("href")+"&without_js=1")
      .css({"border": "0", "width": "100%", "height": ($(window).height() - 100 - 100)+"px", "overflow":"scroll"})
      .attr("id", "zaplanowanie_przegladu_frame").attr("name", "table_frame").hide().appendTo($("body"));

1 个答案:

答案 0 :(得分:2)

我遇到了类似的问题。我正在滚动iframe的body属性。它在FF17之前工作。我将尝试将错误的最小公分母复制在一起。

我发现有人在mozilla支持网站上报告了类似的问题: http://support.mozilla.org/en-US/questions/942843