大约有 370 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
Laya_社区(171) Laya3.0_api(41) laya_api(38) Laya2.0_api(38) Laya2.0_文档(28) Laya3.0_文档(22) Laya2.0_示例(17) Laya_示例(15)
...ld(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText); } /* 停止滚动文本 */ function fin...
来源: Laya_示例 发布时间: 20260303
位图文本怎么做渐变消隐动画? 为什么好多主键都没有了alpha选项?动画模式不支持文本,场景模式文本不支持alpha选项,请问位图文本怎么做渐变消隐动画? 2018-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20181227
【解决】富文本html下划线换行bug 开发中大家都会遇到 聊天窗口需要支持下划线点击展示装备道具等需求。 修改2.0版本 laya.html.js库里的代码__proto.renderSelfToGraphic=function(graphic,gX,gY,recList){ var cssStyle=this.style; var words=this._getWords(...
来源: Laya_社区 发布时间: 20190611
...his.txt.on(Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText(e) { const Event = Laya.Event; prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Event.MOUSE_UP, this, this.finishScrollText); } ...
来源: Laya2.0_示例 发布时间: 20260303
基础文本(Text)1. LayaAir IDE中使用Text1.1 创建Text1.2 属性介绍1.3 Syntax属性1.4 脚本控制Text2. 代码创建Text基础文本(Text) Text继承于Sprite,是静态文本的基础组件。这里我们介绍一下Text专属的组件属性。 1. LayaAir IDE中使用Text 1.1 ...
来源: Laya3.0_文档 发布时间: 20251010
...!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffffff"; //设置文本为多行文本 txt.wordWrap = true; txt.x = Laya.stage.width - txt.textWidth >> 1; txt.y = Laya.stage.height - txt.textHeight >> 1; Laya.stage.addChild(txt); } })();module laya { import Stage = Laya.Stage; import Text = ...
来源: Laya_示例 发布时间: 20260303
...!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffffff"; // 设置文本是否自动换行 txt.wordWrap = true; txt.x = Laya.stage.width - txt.textWidth >> 1; txt.y = Laya.stage.height - txt.textHeight >> 1; } } new Text_Scroll();module laya { import Stage = Laya.Stage; import Text = Laya.Te...
来源: Laya2.0_示例 发布时间: 20260303
...尾会自动换行么? 上图是名字后面就换了 我这是一条文本 2017-11-20 0 4 分享 微博 QZONE 微信 swp_laya 赞同来自: let style = cell.divChat.style; style.valign = "top"; style.leading = 2; style.width = 450; style.wordWrap = true; cell.divChat.innerHTML = data.message; c...
来源: Laya_社区 发布时间: 20171116
html富文本为什么很多属性不起作用 let html = new HTMLDivElement(); let str = "<span style='color:#ffffff; line-height:20px'>.....</span>" html.innerHTML=str; 比如这个line-height 怎么弄都是没反应。而且这里很多html/css的样式好像都设置不了,有...
来源: Laya_社区 发布时间: 20170302
...8"; createText(); })(); function createText() { var txt = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术方案!"; //设置宽度,高度自动匹配 txt.width = 400...
来源: Laya_示例 发布时间: 20260303