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

大约有 35 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)

1. laya.utils.Browser_API3.0 [ 100%]

...ebAudio userAgent Accessors _isMiniGame clientHeight clientWidth container document height pixelRatio width window Methods createElement getElementById getQueryString now removeElement Properties Static PLATFORM_ANDROID PLATFORM_ANDROID: number = 1 Defined in laya/utils/Browser.ts:71 Static PLATFORM...

来源: Laya3.0_api 发布时间: 20231115

2. DOM元素-视频 [ 99%]

...素 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_示例 发布时间: 20251130

3. DOM元素-视频 [ 99%]

...素 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_示例 发布时间: 20251130

4. TS setExternalLinkEx問題 [ 96%]

...conch && Browser.window.conch.showAssistantTouch(false); var ctx = document.createElement('canvas').getContext('2d'); function render(){ ctx.fillStyle='#99d9ea'; ctx.fillRect(0,0,window.innerWidth,window.innerHeight); window.requestAnimationFrame(render); } window.requestAnimationFrame(rende...

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

5. 关于嵌入div [ 96%]

... id="aaaa",现在想把layabox做的东西嵌入到这个div中。 Browser.document.getElementById("aaaa").appendChild(Browser.canvas.source); 这样写发现引擎自身会创建一个layacontainer的div,canvas会被放到这个div中,请问怎么在不修改引擎的代码下可以把canvas添...

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

6. 关于嵌入div [ 95%]

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

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

7. 分享:使用 Chart.js 创建图标 [ 94%]

...的,因为图表框架是根据父容器改变大小的 __JS__("var div=document.createElement('div')"); __JS__("div.style.width='400px'"); __JS__("div.style.height='400px'"); // 相对父级定位,并在最上方显示 __JS__("div.style.position='absolute'"); __JS__("div.style.zIndex=100"); // ...

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

8. laya.utils.Browser [ 93%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BrowserProperties | Methods Packagelaya.utilsClasspublic class BrowserInheritanceBrowser Object Browser 是浏览器代理类。封装浏览器及原生 js 提供的一些功能。 Public Properties PropertyDefined By ...

来源: laya_api 发布时间: 20170929

9. laya.utils.Browser [ 93%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BrowserProperties | Methods Packagelaya.utilsClasspublic class BrowserInheritanceBrowser Object Browser 是浏览器代理类。封装浏览器及原生 js 提供的一些功能。 Public Properties PropertyDefined By ...

来源: Laya2.0_api 发布时间: 20190513

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

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