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

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

151. 请问HTMLDivElement怎么加垂直滚动条 [ 73%]

...bsolute;width:495px;height:329px;overflow-y:scroll;border-width:1px;border-color:Red;border-style:solid;font-size:16px;color:#fff;'><p style='color:#999;right:20px'>2021-01-21 10:25:10</p>bbb>>bbb 加入了聊天室<br/>bbb>>啊实打实的鬼斧神工风神股份时...

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

152. 材质-BlinnPhong-高光贴图 [ 73%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scen...

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

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

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createSingleInput(); this.createMultiInput(); } private createSingleInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; ...

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

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

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } new laya.HelloLayabox(); ``` 这个时候我们就可以看到txt...

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

155. 富文本排版问题 [ 73%]

...ing = "";   htmlStr += "<span style='font-weight:bold;font:24px Arial' color='#fafbf9'>累计进行关卡</span>"; htmlStr += "<span style='font-weight:bold;font:48px Arial;valign:top' color='#84ED4A'>3</span>"; htmlStr += "<span style='font-weight:bold;font:24px Arial' c...

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

156. flag的问题 [ 73%]

...36, 640, WebGL);                       Laya.stage.bgColor = "#ffffff";                   //以500毫秒的时间间隔播放颜色切换的矩形         Laya.timer.loop(500, this, createRect);               })();       function ...

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

157. laya.d3.core.render.posteffect.BloomEffect_API3.0 [ 73%]

...fect Index Constructors constructor Accessors active anamorphicRatio clamp color diffusion dirtIntensity dirtTexture fastMode intensity softKnee threshold Methods effectInit getCameraDepthTextureModeFlag release CompositeInit __initDefine__ init Constructors constructor new BloomEffect(): BloomEffec...

来源: Laya3.0_api 发布时间: 20231115

158. 鼠标交互-修正交互区域 [ 72%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { buildWorld(); createLogger(); } function buildWorld() { createCoralRect(); createDeepSkyblueRect(); createDarkOrchidRect(); // 设置舞台 Laya.stage.name = "暗灰色舞...

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

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

...); //设置文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中白色的hello_world。 接着我们给文本添加一些其他的字体样式,粗体、斜...

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

160. 鼠标交互-键盘交互 [ 72%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } listenKeyboard() { const Event = Laya.Event; // 用Set实现更好...

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