大约有 125 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Laya_社区(59) Laya2.0_文档(14) Laya3.0_api(11) Laya2.0_示例(9) Laya2.0_api(9) Laya_示例(9) Laya3.0_文档(8) laya_api(6)
...t = new Input(); input.size(200, 30); input.borderColor = "#FFFF00"; input.bold = true; input.fontSize = 20; input.color = "#FFFFFF"; input.padding = [0, 4, 0, 4]; Laya.stage.addChild(input); return input; } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Text = Laya....
来源: Laya_示例 发布时间: 20251130
...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
...addChild(input); input.size(200, 30); input.borderColor = "#FFFF00"; input.bold = true; input.fontSize = 20; input.color = "#FFFFFF"; input.padding = [0, 4, 0, 4]; return input; } } new Text_Restrict();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Text = Laya.Text; impor...
来源: Laya2.0_示例 发布时间: 20251130
...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
...微端设置字体粗体无效,但在浏览器有效。 给字体设置bold,在浏览器上是正常的,有粗有细,但在微端上显示是一样粗细的。 已上传demo,demo就是直接新建项目创建两个label设置bold,其他什么也没改,在native 2.10、2.11、2.12上都...
来源: Laya_社区 发布时间: 20210427
... text.style.width = 500; text.style.align = "center"; text.style.weight = "bold"; text.innerHTML = "中华人民共和国"; text.filters = [new GlowFilter("#000", 4, 2, 2)]; text.x = (ClientConfig.displayWidth-text.width)/2; text.y = (ClientConfig.displayHeight-text.contextHeight)/2; addChild(text);...
来源: Laya_社区 发布时间: 20170216
...ext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5' + ',5)'; cxt.font = "bold 50px 宋体"; cxt.textAlign = "center";//文本的对齐方式 cxt.textBaseline = "center";//文本相对于起点的位置 //设置文字,位置 cxt.fillText("-" + hart.toString(), 100, 50, 200);//有填充cxt.font="bol...
来源: Laya_社区 发布时间: 20200714
...tle></title> <style type="text/css"> .p1{font-family:"Arial bold"; color: #583823;font-size: 25px} .p2{font-family:"Times New Roman";color: #583823;font-size: 25px} .p3{font-family:"Arial Black";color: #583823;font-size: 25px} .p4{font-family:"Arial";color: #583823;font-size: 25px} &l...
来源: Laya_社区 发布时间: 20180629
...lic` 增加了斜体效果。如下图所示:  值为`bold 60px simHei italic` 增加了文本加粗效果。如下图所示:  > Tips: > > - 大小与字体是必须设置的,并且在字体必需要放到文本px大小的后面。 > - bold需要放到文...
来源: Laya2.0_文档 发布时间: 20210715
... bgColor : String 文本背景颜色,以字符串表示。 TextStyle bold : Boolean是否为粗体TextStyle borderColor : String 文本边框背景颜色,以字符串表示。 TextStyle currBitmapFont : BitmapFont当前使用的位置字体。TextStyle italic : Boolean = false 表...
来源: Laya2.0_api 发布时间: 20190513