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

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

1. 富文本换字体div.style.font="SimHei";失效了,希望帮忙测一下 [ 100%]

...yle.font="SimHei";整体设字体,那么一段话中部分关键字需要加粗就得 div.innerHTML="<span style='font:30px Microsoft Yahei;font-weight:bold'>我们</span><span style='font:30px Microsoft Yahei'>欢迎你</span>";  如果关键字多的话就会很长,也...

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

2. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 90%]

.../ interface ITextFormat { /** * 背景色 */ bgColor?: string; /** * 是否加粗 */ bold?: number; /** * 文本框背景色 */ borderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * 字体大小 */ fontSize?: number; /** * 是否为斜体 */ italic?: number...

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

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

...xt组件实现简单的富文本 扩展Laya.Text组件实现支持换色、加粗、下划线的文本类型 2018-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 6 个回复 he853066732 赞同来自: 176*****233 主要...

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

4. laya2.0版本,富文本HTMLDivElement中<p>标签里使用<br />标签时报错,在<span>里也不行 [ 81%]

...ps://ask.layabox.com/question/38811   希望官方能帮忙解决一下,加粗的是重点,其他都可以缓缓,非常感谢官方人员~     其他附加问题: 1.富文本的超链接多行的话,下划线显示问题,根据http://ask.layabox.com/question/42754然后自己扩展一...

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

5. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 68%]

...值,也可以把所有相关的文本样式(大小、字体、斜体、加粗)也在这里指定。 例如,当值为 `60px simHei` ,是将文本大小设置为60像素大小,采用simHei字体。如下图所示: ![图2](img/1-3-2.png) 值为`60px simHei italic` 增加了斜体效果。...

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

6. 多行输入文本组件 · LayaAir3.0文档 · LAYABOX [ 64%]

...this.txtarea.color = "#ff0000"; //字体颜色 this.txtarea.bold = true; //加粗 this.txtarea.italic = true; //斜体 this.txtarea.underline = true; //下划线 this.txtarea.underlineColor = "#ff0000"; //下划线颜色 this.txtarea.stroke = 5; //描边宽度 this.txtarea.strokeColor = "#000000" ; ...

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

7. 显示文本组件 · LayaAir3.0文档 · LAYABOX [ 55%]

...大小 this.lab.color = "#ff0000"; //字体颜色 this.lab.bold = true; //加粗 this.lab.italic = true; //斜体 this.lab.underline = true; //下划线 this.lab.underlineColor = "#ff0000"; //下划线颜色 this.lab.stroke = 5; //描边宽度 this.lab.strokeColor = "#000000" ; //描边颜色 this.l...

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

8. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 52%]

...小 this.txtin.color = "#ff0000"; //字体颜色 this.txtin.bold = true; //加粗 this.txtin.italic = true; //斜体 this.txtin.underline = true; //下划线 this.txtin.underlineColor = "#ff0000"; //下划线颜色 this.txtin.stroke = 5; //描边宽度 this.txtin.strokeColor = "#000000" ; //描边...

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

9. 基础文本 · LayaAir3.0文档 · LAYABOX [ 37%]

...大小 this.txt.color = "#ff0000"; //字体颜色 this.txt.bold = true; //加粗 this.txt.italic = true; //斜体 this.txt.underline = true; //下划线 this.txt.underlineColor = "#ff0000"; //下划线颜色 this.txt.stroke = 5; //描边宽度 this.txt.strokeColor = "#000000" ; //描边颜色 this.t...

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