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

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

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

...么改变样式。 ```typescript //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type...

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

362. 分享,扩展Laya.Text组件实现简单的富文本 [ 28%]

...写是因为TS的正则需要加转义字符)   目前发现的BUG:右对齐且最后一行有数字“1”时排版不正常,发现是 getTextWidth( ) 函数的结果和在屏幕上实际显示的宽度不同导致。 2018-04-17 1 0 分享 微博 QZONE 微信 he853066732 赞同来自: 先上...

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

363. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 26%]

...,看看怎么改变样式。 //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type =...

来源: Laya3.0_文档 发布时间: 20251010

364. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 26%]

...,0); //设置适配模式 Laya.stage.scaleMode = "exactfit"; //设置剧中对齐 Laya.stage.alignH = "center"; //设置横屏 Laya.stage.screenMode = "horizontal";   打开浏览器(哦这里要说一下 因为浏览器有本地加载文件策略 具体可以看下laya这方面的说明)看到...

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

365. 文本进阶使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 25%]

...ram color 定义文本颜色,比如"#ff0000"。 * @param textAlign 文本对齐方式,可选值:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, color: string, textAlign: string): FillTextCmd { return this.addCmd(FillTextCmd.create(text, x...

来源: Laya3.0_文档 发布时间: 20251010

366. laya.ui.Button_API3.0 [ 25%]

...set labelAlign(value: string): void Defined in laya/ui/Button.ts:601 标签对齐模式, Returns string Defined in laya/ui/Button.ts:606 标签对齐模式, Parameters value: string Returns void labelBold get labelBold(): boolean set labelBold(value: boolean): void Defined in laya/ui/Button.ts:5...

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

367. laya.ui.CheckBox_API3.0 [ 24%]

...id Inherited from Button.labelAlign Defined in laya/ui/Button.ts:601 标签对齐模式, Returns string Inherited from Button.labelAlign Defined in laya/ui/Button.ts:606 标签对齐模式, Parameters value: string Returns void labelBold get labelBold(): boolean set labelBold(value: boolean): vo...

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

368. laya.ui.Radio_API3.0 [ 24%]

...id Inherited from Button.labelAlign Defined in laya/ui/Button.ts:601 标签对齐模式, Returns string Inherited from Button.labelAlign Defined in laya/ui/Button.ts:606 标签对齐模式, Parameters value: string Returns void labelBold get labelBold(): boolean set labelBold(value: boolean): vo...

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

369. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 22%]

...有一行。 · 文本的样式始终不变(颜色、粗细、斜体、对齐等等)。 即使如此,实际编程中依旧会经常使用到这样的需要。 三、减少CPU使用量 3.1 减少动态属性查找 JavaScript中任何对象都是动态的,你可以任意地添加属性。然...

来源: Laya3.0_文档 发布时间: 20251010

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

...png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="f...

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