WebGL_0009:canvas 画布 旋转90度

1,

            var ii = this.app.graphicsDevice.canvas.parentElement;
            var ee = this.app.camera;
            var nn = ee ? ee.script.orbitCamera : null;
            var a = window.innerWidth;
            var r = window.innerHeight;

            ii.style.width = r + "px", 
            ii.style.height = a + "px", 
            ii.style.top = "0px", 
            ii.style.left = a + "px";

            ii.style.webkitTransformOrigin = "0% 0%", 
            ii.style.transformOrigin = "0% 0%", 
            ii.style.webkitTransform = "rotate(90deg)", 
            ii.style.transform = "rotate(90deg)";

 

上一篇:[Olio]未触及或尚不足的技术栈清单


下一篇:python--列表,元组