大约有 29 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)
...三、代码中使用3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线3.2 同一个文本中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3....
来源: Laya3.0_文档 发布时间: 20230303
...bc</div> * span:行内元素标签,比如:<span style='color:#ff0000'>abc</span> * p:行元素标签,p标签会自动换行,div不会,比如:<p>abc</p> * img:图片标签,比如:<img src='res/boy.png'></img> * br...
来源: Laya_社区 发布时间: 20190815
...ransform.d)}); } } } 会报错: Uncaught TypeError: Cannot read property '_color' of null at WebGLContext2D.__proto.stroke (laya.js:17440) at RenderContext._drawLine (laya.js:4738) at GraphicsGL.__proto._renderAll (laya.js:987) at RenderSprite3D.__proto._graphics (laya.js:5234) at RenderSprite3D.Ren...
来源: Laya_社区 发布时间: 20171214
...pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"> <h3>This page contains the following errors: </h3> <div style="font-family:monospace;font-size:12px">error on line 1 at column 53: attributes construct error </div> <h...
来源: Laya_社区 发布时间: 20171130
... Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/input (1).png", "../../res/ui/input (2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLo...
来源: Laya_社区 发布时间: 20190814
...-03-27 13:14 var Text = new HTMLDivElement(); barWrap.addChild(Text); Text.color = "#fff"; Text.style.fontSize = 24; Text.innerHTML = "子弹命中率:<span style='color: #ee452c'>50</span>\/100 50%"; Text.pos(480, 20); 我 innerHTML 里的内容太长时会换行...
来源: Laya_社区 发布时间: 20170324
...字体需要频繁修改,可以勾选此项以提升性能 文本颜色 color 文本的颜色,可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色 样式 style “B”(bold)是否为粗体,“I”(italic)是否为斜体,“U”是否有下...
来源: Laya3.0_文档 发布时间: 20251010
....html.style.lineHeight = 55 this.html.style.align = "left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.hornBox) } /** 滚动动画 */ private _animate(e: Event): void { const _w = this.html.width const _x = this.html.x if (_x < -_w) ...
来源: Laya_社区 发布时间: 20180314
...性值范围,并在这个范围内取一个随机值作为属性值。 Color:设置一个固定的颜色作为属性值。 TwoColors:设置两个固定颜色值,每个粒子实际的属性值由这两个颜色值随机线性插值得到。 Gradient:设置一个颜色渐变,在粒子的...
来源: Laya3.0_文档 发布时间: 20251010
...点,下图2-5展示了UV坐标的可视化表达。 (图2-5) VertexColor 当我们从 3D 软件中导出对象时,软件会为要受影响的对象分配颜色,通过照明或复制另一种颜色。 这种颜色称为顶点颜色,默认情况下对应于白色,在 RGBA 通道中具有...
来源: Laya3.0_文档 发布时间: 20251010