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

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

71. DOM元素-视频 [ 75%]

...ndChild(videoElement); // 设置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.setAttrib...

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

72. 如何使用h5打开本地文件的浏览窗口? [ 74%]

...ut")');('file.type = "file"'); ('document.body.appendChild(file)'); ('file.style.zIndex = 999999'); ('file.style.position = "absolute"'); ('file.style.top = 20'); ('document.body.appendChild(file);') [IF-SCRIPT-END]*/ 2016-02-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

73. 请教一下Laya和Flash里的skewXY之间的差别 [ 74%]

...以进行测试检验 <!DOCTYPE html> <html> <head> <style> div { margin:30px; width:100px; height:100px; background-color:yellow; -webkit-transform-origin: 0 0; /* Safari 和 Chrome */ -webkit-transform:skew(0,110deg); /* Safari 和 Chrome */ } </style> </head> &...

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

74. 不知道是不是引擎的bug [ 74%]

...引擎的代码后就没有问题 这一行改为  (ele = (childs[i]))._style && (ele=(childs [i]))._style.visible && ele.render(context,x,y); 这样就没有问题 附件 : --> 2018-04-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

75. video rmtp ERR_UNKNOWN_URL_SCHEME [ 74%]

...ndChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style.zIndex + 1; var html = '<source src="rtmp://rtmp.open.ys7.com/openlive/2245d47a94b54c73bdbc628a10855c50" type="" /><source src="http://hls.open.ys7.com/openli ... ot%3B type="...

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

76. Arial Black字体能显示,为啥游戏里在firefox 里字体显示成了Times New Roman了 [ 73%]

...DOCTYPE html> <html> <head> <title></title> <style type="text/css"> .p1{font-family:"Arial bold"; color: #583823;font-size: 25px} .p2{font-family:"Times New Roman";color: #583823;font-size: 25px} .p3{font-family:"Arial Black";color: #583823;font-size: 25px} .p4{font-...

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

77. Laya下怎么实现复制 [ 72%]

...riends+"/99" var iframe = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left =pt.x+"px"; iframe.style.top =pt.y+"px"; iframe.src = "target-div.html"; Browser.document.getElem...

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

78. _calculateCacheRect函数有bug [ 72%]

...calculateCacheRect(sprite, tCacheType, x, y) {             var _cacheStyle = sprite._cacheStyle;             if (!_cacheStyle.cacheRect)                 _cacheStyle.cacheRect = Rectangle.create();             var tRec;             if (tCacheType === "bitmap") {     ...

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

79. 圆形的头像怎么实现? [ 72%]

...meta charset="UTF-8"> <title>Document</title> <style type="text/css"> html,body{overflow: hidden;} *{margin: 0; padding: 0;} #layaContainer{overflow: hidden;} </style> </head> <body> <script src='js/libs/laya.core.js'></script> &...

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

80. 【解决】富文本html下划线换行bug [ 72%]

...代码__proto.renderSelfToGraphic=function(graphic,gX,gY,recList){ var cssStyle=this.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color; if (cssStyle.stroke){ var stroke=cssStyle.stroke; stroke=parseI...

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