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

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

1. 屏幕适配的缩放模式详解(JavaScript-2D基础篇(JS)-屏幕适配) [ 100%]

...      txt.text = "适配模式("+modes+") ";         txt.bold = true;         txt.pos(10, 350);         txt.fontSize = 60;         txt.color   = "#fff000";         Laya.stage.addChild(txt);     })();   })(); ``` ### 二、fixedheight模...

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

2. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 98%]

...t.text = "适配模式("+Stage.SCALE_EXACTFIT+") ";         txt.bold = true;         txt.pos(10, 350);         txt.fontSize = 60;         txt.color   = "#fff000";         Laya.stage.addChild(txt);         }            } } ``` ### ...

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

3. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 98%]

...is.txt.text = "适配模式("+this.modes+") ";         this.txt.bold = true;         this.txt.pos(10, 350);         this.txt.fontSize = 60;         this.txt.color   = "#fff000";         Laya.stage.addChild(this.txt);         }       } ...

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

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

...lic` 增加了斜体效果。如下图所示: ![3](img/1-3-3.png) 值为`bold 60px simHei italic` 增加了文本加粗效果。如下图所示: ![4](img/1-3-4.png) > Tips: > > - 大小与字体是必须设置的,并且在字体必需要放到文本px大小的后面。 > - bold需要放到文...

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

5. 文本基础样式(JavaScript-LayaAir基础篇(JS)-文本) [ 75%]

...本框的颜色 txt.borderColor = "#23cfcf"; //设置粗体、斜体 txt.bold = true; //设置斜体 txt.italic = true; //设置边距 txt.padding = [5,5,5,5]; Laya.stage.addChild(txt); ``` ![5](img/5.png) 这里我们就可以看到字体样式、字体大小有明显的变化,文本框的最外...

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

6. 文本基础样式(ActionScript-LayaAir基础篇(AS3)-文本) [ 74%]

...本框的颜色 txt.borderColor = "#23cfcf"; //设置粗体、斜体 txt.bold = true; txt.italic = true; Laya.stage.addChild(txt); } } } ``` ![5](img/5.png) 这里我们就可以看到字体样式、字体大小有明显的变化,文本框的最外围又一圈浅蓝色的边框,文本区的背...

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

7. textInput的单行输入&多行输入(TypeScript-LayaAir基础篇(TS)-文本) [ 72%]

... inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } private createMultiInput(): void { var inputText: Input = new Input(); // 移动端输入提示...

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

8. 文本基础样式(TypeScript-LayaAir基础篇(TS)-文本) [ 69%]

...本框的颜色 txt.borderColor = "#23cfcf"; //设置粗体、斜体 txt.bold = true; //设置斜体 txt.italic = true; Laya.stage.addChild(txt); } } } new laya.HelloLayabox(); ``` ![5](img/5.png) 这里我们就可以看到字体样式、字体大小有明显的变化,文本框的最外围有一...

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

9. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 66%]

...ont | 文本的字体名称。 | | fontSize | 文本的字体大小。 | | bold | 文本是否为粗体字显示。 | | italic | 文本是否显示为斜体。 | | wordWrap | 文本是否换行。 | | stroke | 文本的描边宽度。 | | strokeColor | 文本的描边颜色。 | | asPassword | 文...

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

10. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 65%]

...ont | 文本的字体名称。 | | fontSize | 文本的字体大小。 | | bold | 文本是否为粗体字显示。 | | italic | 文本是否显示为斜体。 | | wordWrap | 文本是否换行。 | | stroke | 文本的描边宽度。 | | strokeColor | 文本的描边颜色。 | | asPassword | 文...

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