• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 141 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)

21. ios上input无法隐藏 [ 85%]

ios上input无法隐藏            var z_file = Laya.Browser.document.createElement("input"); //创建input             var f_file = Laya.Browser.document.createElement("input"); //创建input             z_file.style="filter:alpha(opacity=0);opacity:0;width: 29%;height:11%;";   ...

来源: Laya_社区 发布时间: 20171128

22. 和原生Dom交互 · LayaAir3.0文档 · LAYABOX [ 84%]

...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就能看到上面截图的效果。或...

来源: Laya3.0_文档 发布时间: 20230629

23. 屏幕截屏问题 [ 84%]

...onch.captureScreen(function(arrayBuff,width,height){ window.image = window.document.createElement("img"); window.image.putImageData(arrayBuff,width,height); }) } }     E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>classNa...

来源: Laya_社区 发布时间: 20180227

24. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 84%]

...dth,height,conch.getCachePath()+"/test.png" ); window.globalImage = window.document.createElement("img"); window.globalImage.onload=function() { ...使用image对象 } window.globalImage.src = "file:///" + conch.getCachePath()+"/test.png"; */ // window.image = window.document.createElement("img"); i...

来源: Laya_社区 发布时间: 20180227

25. Laya下的图片上传示例(完整版) [ 83%]

...位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("input"); var img:any = Laya.Browser.document.createElement("img"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width:200px;height:100px;background:url(b1.png) no-repeat center;curs...

来源: Laya_社区 发布时间: 20190129

26. DOM元素-视频 [ 83%]

...素 let videoElement = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zIndex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "res/av/mov_bbb.mp4"; videoElement.controls = true; // 阻止IO...

来源: Laya2.0_示例 发布时间: 20240930

27. DOM元素-视频 [ 82%]

...素 var videoElement = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "../../res/av/mov_bbb.mp4"; videoElement.controls = true; // ...

来源: Laya_示例 发布时间: 20240930

28. 怎么打开第二个工程 [ 82%]

...ler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left ="100px"; iframe.style.top ="100px"; iframe.src = "http:...

来源: Laya_社区 发布时间: 20180223

29. iframe跳转没反应 [ 82%]

... 1 个回复 cuixueying 赞同来自:     var iframe:* = Browser.window.document.createElement('iframe');             iframe.setAttribute('src','http://www.baidu.com');             var body:*=Browser.window.document.getElementsByTagName("body")[0];             body.appe...

来源: Laya_社区 发布时间: 20161227

30. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 81%]

... Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* = Browser.getElementById("layaCanvas") // canvas.appendChild(videoElement) videoElement = Browser.createElement("video"); div.appendChild(videoElement); // Browser.document.body...

来源: Laya_社区 发布时间: 20180313