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

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

21. 字体不支持weight [ 81%]

... 请问下 现在字体是不是不支持设置字体的粗细 只有一个bold 但是如果这个不满意 难道写个文字还得专门去搞个图片?这有点不合理吧 2017-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

22. HTMLDivElement 设置字体 [ 80%]

...t();             html.innerHTML = "<span style='font-weight:bold; font:24px SimHei' color='#ff0000'>欢迎你的加入</span>"             +"<span style='font-weight:bold; font:24px Arial' color='#ff0000'>欢迎你的加入</span>";          ...

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

23. 文本-复杂的文本样式 [ 80%]

...xt.fontSize = 40; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.bold = true; txt.leading = 5; //设置描边属性 txt.stroke = 2; txt.strokeColor = "#ffffff"; txt.borderColor = "#00ff00" txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; Lay...

来源: Laya_示例 发布时间: 20251130

24. HTMLDivElement span标签嵌套问题 [ 79%]

...ment span标签嵌套问题 <span style='color:#c28869; size:14px; face:bold 14px Arial; bold:true; italic:false; align:left; vertical-align:middle '> <span style='color:#ff7700'>绵羊重击</span> :充能后再使用跳跳羊,获得额外 <span style='color:#ff7700'>20%...

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

25. 文本-复杂的文本样式 [ 79%]

...xt.fontSize = 40; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.bold = true; txt.leading = 5; //设置描边属性 txt.stroke = 2; txt.strokeColor = "#ffffff"; txt.borderColor = "#00ff00"; txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; } ...

来源: Laya2.0_示例 发布时间: 20251130

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

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

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

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

...rue|false;                   是否是斜体      * bold:true|false;                     是否是粗体      * letter-spacing:10px;                 字间距      * font-family:宋体;                  字体   ...

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

28. 计时器-间隔循环 [ 79%]

...{ var t = new Text(); t.text = text; t.fontSize = 30; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } function animateTimeBased() { rotateTimeBasedText.rotation += 1; } function animateFrameRateBased() { rotateFrameRateBasedText....

来源: Laya_示例 发布时间: 20251130

29. List滚动条问题 [ 78%]

...t.marketdlg.default"); this._goldLabel.font = font.family; this._goldLabel.bold = (parseInt(font.bold | 0) == 0 ? false : true); this._goldLabel.fontSize = parseInt(font.size); this._goldLabel.underline = (parseInt(font.underline | 0) == 0 ? false : true); this._goldLabel.align = "center"; this._gol...

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

30. 计时器-间隔循环 [ 78%]

...; let t = new Text(); t.text = text; t.fontSize = 30; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } animateTimeBased() { this.rotateTimeBasedText.rotation += 1; } animateFrameRateBased() { this.rotateFrameRateBasedText.rotation...

来源: Laya2.0_示例 发布时间: 20251130