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

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

11. iframe跳转没反应 [ 83%]

... 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

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

...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

13. ios上input无法隐藏 [ 82%]

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

14. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 81%]

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

来源: Laya2.0_文档 发布时间: 20210715

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

...位置一致,这里我们默认在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

16. 关于嵌入div [ 81%]

...Browser._container.id="layaContainer";                 Browser.document.body.appendChild(Browser._container);             }             return Browser._container;             },function(value){             Browser._container=value;         }); 20...

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

17. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 81%]

...w();             }           private iframe: any = Laya.Browser.document.createElement("iframe");     private _view: HTMLDivElement = document.createElement("div");           public Show(): void {         Laya.Browser.document.body.appendChild(this._view);         this._vie...

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

18. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 80%]

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

来源: Laya2.0_文档 发布时间: 20210714

19. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 80%]

...素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.style.zInddex = Laya.Render.canvas.style.zIndex + 1; videoElmt.src = getResURI("video/guide.mp4"); videoElmt.controls = false; videoElmt.a...

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

20. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 80%]

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

来源: Laya2.0_文档 发布时间: 20210715