大约有 37 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
...); // 设置Video元素地样式和属性 videoElement.style.zIndex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "res/av/mov_bbb.mp4"; videoElement.controls = true; // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinline", t...
来源: Laya2.0_示例 发布时间: 20251130
...; // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "../../res/av/mov_bbb.mp4"; videoElement.controls = true; // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinli...
来源: Laya_示例 发布时间: 20251130
...vas); 3.在这里 http://ask.layabox.com/question/4533 问过,使用Laya.Render._mainCanvas.source.style来设置canvas的属性,这个方法可以,不会发生偏移,但是无法放到我要的位置啊,具体请看图,这问题搞了2天了,求指导 附件 : --> 2017-08-18 添加...
来源: Laya_社区 发布时间: 20170818
...let input = Laya.Browser.createElement("input"); input.style.zIndex = Laya.Render.canvas.zIndex + 1; input.style.width = "100px"; Laya.Browser.document.body.appendChild(input); return input; } fitDOMElements(){ for (let i = 0; i < arguments.length; i++) { let dom = arguments[i]; Laya.Utils.fitDOMEle...
来源: Laya2.0_示例 发布时间: 20251130
...var input = Laya.Browser.createElement("input"); input.style.zIndex = Laya.Render.canvas.zIndex + 1; input.style.width = "100px"; Laya.Browser.document.body.appendChild(input); return input; } function fitDOMElements(){ for (var i = 0; i < arguments.length; i++) { var dom = arguments[i]; Laya.Utils....
来源: Laya_示例 发布时间: 20251130
...个方式去设置你画布的位置,不要去直接改变节点属性,Render._mainCanvas.source.style.left = "300px"; 2017-05-16 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 chensa222 相关问题 救命!canvas定位后 点击...
来源: Laya_社区 发布时间: 20170516
... _bgColor = value; conchModel && conchModel.bgColor(value); if (Render.isWebGL) { if (value && value !== "black" && value !== "#000000") { _wgColor = Color.create(value)._color; } else { _wgColor = null; } } if (value) { Render.canvas.style.background = value; } else { ...
来源: Laya_社区 发布时间: 20180607
...请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: Render._mainCanvas.source.style.left = "300px"; Render._mainCanvas.source.style.top = "300px"; 你不要手动去该layaAir canvas标签的属性,在代码里通过上面的代码调试canvas的位置试下! 2017-04-27 0 ...
来源: Laya_社区 发布时间: 20170427
...ackage { import laya.display.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage...
来源: Laya_社区 发布时间: 20171226
... //Browser.document.body.style.direction = "rtl"; Render._mainCanvas.source.style.direction = "rtl"; Text.RightToLeft = true; Browser.document.body.appendChild(Browser.canvas.source); } 2018-07-03 0 4 分享 微...
来源: Laya_社区 发布时间: 20180703