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

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

201. 关于layaCanvas大小自适应的建议 [ 61%]

...s" 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: block;"></canvas></div> 目前layaCanvas的大小是自适...

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

202. 改变位置后,点击区域不生效了 [ 60%]

...rivate function onClick(event:Event):void{ Render._mainCanvas.source.style.left = "100px"; Render._mainCanvas.source.style.top = "100px"; trace("onClick"); } } } 就这么一段简单的代码,求指点怎么改变位置后不改变点击区域 2017-12-26 添加评论 免费帖 --> 分享 微博 Q...

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

203. UI 控件多次调用 RESIZE 回调问题 [ 60%]

UI 控件多次调用 RESIZE 回调问题 var a = new Laya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测...

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

204. laya 容器不在页面 最顶端 最左 ,点击容器中的 按钮 位置偏移 [ 60%]

.../question/6504 很类似。           Render._mainCanvas.source.style.left = "300px"; Render._mainCanvas.source.style.top = "300px";   这个也不是很好使!     2018-09-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

205. UI-RefreshList [ 60%]

...s.refreshList.width = 443; this.refreshList.height = 622; this.refreshList.left = 30; this.refreshList.top = 30; Laya.stage.addChild(this.refreshList); this.refreshList.itemRender = ItemBox; this.refreshList.vScrollBarSkin = ""; // 创建数据 var data = this.createData(9, "初始数据"); this.ref...

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

206. view里面的图片怎么跟着变大变小 [ 60%]

...你可以设置它居父容器的位置!具体的你看下属性栏中的left、right、top、bottom 2017-10-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 haiboannacom 相关问题 请问LayaAir中如何使图片以圆形的方式...

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

207. Input 问题 求解??? [ 60%]

...设置了置顶  在输入时候又不置顶了     _textInput.align="left";   _textInput.valign="top";     附件 : --> 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复   赞同来自: 请提...

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

208. 如何将原生iframe嵌入某个节点,像addChild那样嵌入 [ 60%]

...his.frame.style.margin="0"; this.frame.style.padding="0"; this.frame.style.left="0"; this.frame.style.top="50px"; this.frame.id="OneGou"; this.frame.style.position="absolute"; this.frame.style.zIndex=100; this.frame.src="http://www.baidu.com"; Laya.Browser.document.body.appendChild(this.frame); // t...

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

209. 我有元素是始终定位底部的,旋屏后就不准了,有什么好方法吗? [ 59%]

...复 Laya_XS 赞同来自: layaairide的ui组件也支持相对定位的:left top bottom right属性都可以设置! 2017-03-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 相关问题 两个对象new了一个相同的对象,调用第一个...

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

210. 关于缩放模式下的缩放比 [ 59%]

...ica - 知识达人 赞同来自: 如果是组件的话你可以设置它的left,right,top,bottom。这样不管你如果缩放,它离父节点的距离都是一样的。具体的解释你可以去看下Component 的API 2017-11-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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