大约有 29 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0029 秒)
...实现根据它的父节点的宽高来实现100%填充 就是设置HBox.width=100%,然后HBox会根据父节点的width来自动调节,现在UI里面提供的HBox.width=0好像只支持根据子节点的宽来计算。 2017-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170831
...oElement.controls = false; videoElement.autoplay =true; videoElement.style.width='100%'; videoElement.style.height='100%'; videoElement.autobuffer=true; videoElement.src = "/Users/apple/LayBox/星空/laya/assets/video/world.mp4"; // 设置画布上的对齐参照物 let reference = new Laya.Sprite()...
来源: Laya_社区 发布时间: 20181124
...算出一个很大的值 修改方式有2个 方法1、为你的box设置width、height 方法2、为你的List设置repeatX=1 2017-06-23 0 0 分享 微博 QZONE 微信 gmajrtfp 赞同来自: 好的,我试下,谢谢 2017-06-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20170623
...e> div{ margin: 0 auto; width: 100px; height: 100px; } #main { width: 400px; height: 400px; background: white; border: 2px solid gray; ...
来源: Laya_社区 发布时间: 20181018
...适应的建议 <div id="layaContainer"><canvas id="layaCanvas" width="1920" height="181" class="layaCanvas" style="position: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0); transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0); width: 100%; height: 100%; display: bloc...
来源: Laya_社区 发布时间: 20180124
mask在width<1的时候会失效 this.imgMask.width = 0; 设置width小于1的时候遮罩会失效 layaair 2.3.0 layaIde2.3.0 附件 : --> GameWebsite.zip 2019-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20191219
...分享 微博 QZONE 微信 kezhiyu 赞同来自: <style>#game_canvas{width:100;heigth:L100%}<style> 请先确保这个100%可以覆盖全屏,现在假如手机只有320, 520 <canvas width=”640“, heigth="1040" id="game_canvas"></canvas> 在游戏里应该是Laya.stage.se...
来源: Laya_社区 发布时间: 20180601
...data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +'<em>I</em> like ' +'<span style="color:white; text-...
来源: Laya_社区 发布时间: 20190306
...ideoElement.setAttribute('preload', 'preload'); videoElement.setAttribute('width', '100%'); videoElement.setAttribute('height', '100%'); // videoElement.playbackRate = 2;//加速播放 // 设置画布上的对齐参照物 reference = new Sprite(); this.addChild(reference); reference.pos(0, 0); refer...
来源: Laya_社区 发布时间: 20180313
... $pic.height = 246; $pic.scaleX = $pic.scaleY; trace("$pic.width:" + $pic.width); })); 这样处理后,图片高度还是100%,并不是246啊 2017-05-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20170503