0

我正在将 IE 支持的网页更新为可在 Firefox 中运行的代码。

我有一段代码将页面上的某些表格放置在某些位置。它在 IE 中有效,但似乎在 Firefox.clientHeight .offsetTop .style.posTop.style.posLeft不起作用。火狐浏览器有替代品吗?

这是我正在查看的一段代码:

   var tableHeight = table1.clientHeight;
    var yLocation = table2.offsetTop - tableHeight / 4;


    table3.style.posTop = Math.max(table2.offsetTop + 2);
    table3.style.posLeft = + table2.offsetLeft  + 80;
4

0 回答 0