大约有 361 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
Laya_社区(185) Laya3.0_api(134) Laya2.0_文档(16) Laya3.0_文档(9) Laya2.0_api(6) Laya_示例(5) Laya2.0_示例(5) laya_api(1)
...置(相对于画布)。 font: string 定义字体和字号,比如"20px Arial"。 fillColor: string 定义文本颜色,比如"#ff0000"。 textAlign: string 文本对齐方式,可选值:"left","center","right"。 lineWidth: number 镶边线条宽度。 borderColor: string 定义镶边...
来源: Laya3.0_api 发布时间: 20231115
...;img src="loading_logo.png" style="width: 100%;max-width:500px;" /> </div>
来源: Laya_社区 发布时间: 20171108
...能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left ="100px"; iframe.style.top ="100px"; iframe.src = "http://ask.layaair.com/"; Laya.Browser.document.body.appendChild(iframe); 这里面需要提醒开发者的就是定位和层级要记得设置。很多开发者不注意导致 ifr...
来源: Laya3.0_文档 发布时间: 20251010
...置(相对于画布)。 font: string 定义字体和字号,比如"20px Arial"。 fillColor: string 定义文本颜色,比如"#ff0000"。 textAlign: string 文本对齐方式,可选值:"left","center","right"。 lineWidth: number 镶边线条宽度。 borderColor: string 定义镶边...
来源: Laya3.0_api 发布时间: 20231115
... 一、图片资源的优化,单图片的高宽像素均不能超过1024px,否则内存明显升高。 二、要注册内存的回收。不用的资源或数据,一定要置为null。 三、避免重复对象引用。尽可能要去用对象池,不要总new 对象。 四、多次实例对象...
来源: Laya_社区 发布时间: 20151102
...wRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } fu...
来源: Laya_社区 发布时间: 20170527
...列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +this.font ; var xAction = (n) => { return -n * this.fontSize -this.horizontalSpace; }; var yAction = (n) => { return n * this.fontSize + this.verticalSpace; }; this.sprite.pos(x + w-this.fontSize-this.horizont...
来源: Laya_社区 发布时间: 20191103
...age.as 里面 var sFont:String = "normal 100" + nFontSize +"px Arial"; 改为 var sFont:String = "normal 100 " + font; ggg333 • 2018-08-06 16:39 依然会出问题,然而我没办法给你demo,小demo出不来问题,自己的工程80%的字体还是出问题的 ...
来源: Laya_社区 发布时间: 20180803
... button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private onPlayMusic(e: Event): void { ...
来源: Laya_社区 发布时间: 20201203
...写了 宋体 字体】 在【项目设置】填写了【默认字体:12px 宋体】 【继续优化提问】 如果需要用到其他指定的【字体】需要怎么填写呢? 上面的写法,应该怎么改? 2019-05-09 0 0 分享 微博 QZONE 微信 133*****212 赞同来自: 这个...
来源: Laya_社区 发布时间: 20181011