大约有 291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
Laya_社区(116) Laya3.0_api(60) Laya2.0_示例(34) Laya2.0_文档(31) Laya_示例(31) Laya3.0_文档(17) laya_api(1) Laya2.0_api(1)
...', pxTimes=' + GameMain.pxTimes); Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.stage.bgColor = '#cccccc'; let txt: Laya.Text = new Laya.Text(); txt.text = GameMain.pxTimes + '倍ch/h=' + Laya.Browser.clientHeight + '...
来源: Laya_社区 发布时间: 20170403
... position: absolute; margin:5px; width: 300px; height: 200px; overflow:auto; font-size:20px; line-height:38px; font-family:"微软雅黑"; color:#000; text-align:justify; text-justify:inter-ideograph...
来源: Laya_社区 发布时间: 20180103
...体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Text.registerBitmapFont(mFontName, mBitmapFont); var txt:Text = new Text(); txt.text = "这是测试"; //设置宽度,高度自动匹配 txt.width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; ...
来源: Laya2.0_文档 发布时间: 20201114
...eateFromTexture(this.bgTexture,32*29,0,32,96), 0, 0, 32, 96); this.rightBg.width = 32; this.addChild(this.rightBg); } switch(type){ case 1: this.rightBg.visible = false; this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); break; default: //随机计算一个宽度 当然 最小是3倍 以...
来源: Laya_社区 发布时间: 20160801
...="UTF-8"> <title></title> <meta name="viewport" content="width=750, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <style> *{margin: 0; padding: 0;} body{background: #0099FF;} body,html{height: 100%;} .layaDiv{width: 300px;height: 300px;margin:...
来源: Laya_社区 发布时间: 20170427
...lText is not a function this.cxt.fillText(text, this.cav.width / 2, this.cav.height); ^^ TypeError: this.cxt.fillText is not a function at TextureManager.getWebCharBmp...
来源: Laya_社区 发布时间: 20200409
..."; txt.text = "历史最高分:123456789"; Laya.stage.addChild(txt); txt.width = 100; txt.height = 100; txt.zOrder = 1000; } 但是if里面的不会执行,提示Laya.Browser.window.conch未定义 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...
来源: Laya_社区 发布时间: 20180718
...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){...
来源: Laya2.0_文档 发布时间: 20210714
...I extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ ...
来源: Laya_社区 发布时间: 20200228
...) | | `border-color:#ff0000;` | 边框颜色(仅div中使用) | | `width:100px;` | 宽度(仅div中使用) | | `height:100px;` | 高度(仅div中使用) | 下面的代码是运用的示例代码, ```html 使用 HTMLDivElement 组件 创建的 HTML文本 P标签,不需要...
来源: Laya2.0_文档 发布时间: 20210715