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

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

31. 文本-字符限制 [ 78%]

...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

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

...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

33. 文本-字符限制 [ 78%]

...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

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

...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

35. 在微端设置字体粗体无效,但在浏览器有效。 [ 77%]

...微端设置字体粗体无效,但在浏览器有效。 给字体设置bold,在浏览器上是正常的,有粗有细,但在微端上显示是一样粗细的。 已上传demo,demo就是直接新建项目创建两个label设置bold,其他什么也没改,在native 2.10、2.11、2.12上都...

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

36. HTMLDivElement使用滤镜时显示异常 [ 76%]

... 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

37. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 75%]

...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

38. Arial Black字体能显示,为啥游戏里在firefox 里字体显示成了Times New Roman了 [ 72%]

...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

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

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

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

40. laya.display.css.TextStyle [ 70%]

... bgColor : String 文本背景颜色,以字符串表示。 TextStyle  bold : Boolean是否为粗体TextStyle  borderColor : String 文本边框背景颜色,以字符串表示。 TextStyle  currBitmapFont : BitmapFont当前使用的位置字体。TextStyle  italic : Boolean = false 表...

来源: Laya2.0_api 发布时间: 20190513