CSS transform:rotateX 用于 Internet Explorer

CSS transform:rotateX for Internet Explorer

我正在制作一个包含视差元素的网站 (Parallax web page)。现在,视差部分在 Firefox 和 Chrome 中似乎工作正常,但在 IE 中却不行。
'js/forest_unfixed.js' 对不工作的 id="cont-3d" div 应用计算。我正在努力

cont3d.style["-ms-transform"] = "rotateX("+(90+(dyn_ratio)*(yPos/maxy))+"deg)";
cont3d.style.transform = "rotateX("+(90+(dyn_ratio)*(yPos/maxy))+"deg)";

我也试过使用 Modernizr,但结果完全一样。我做错了什么?

问题可能是 IE 不能很好地处理嵌套的 3d 元素。看看这个答案:

CSS3 3D Transform doesn't work on IE11