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

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

341. 用iframe内嵌网页及适配 [ 51%]

...ight = 1280 * Laya.stage.clientScaleY; var styleStr = "position: absolute; left: {0}px; top: {1}px; z-index: 100009;";//laya 的index是100000 var str = styleStr.format((laya.utils.Browser.width - frameWidth) * 0.5, (laya.utils.Browser.height - frameHeight) * 0.5); this.iframe.setAttribute('width', ...

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

342. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 51%]

...eEnabled = false;             debug_txt.autoSize = TextFieldAutoSize.LEFT;             debug_txt.width = 1000;             debug_txt.y = 20;             var tf:TextFormat = new TextFormat(null,12,0xFFFFFF);             debug_txt.defaultTextFormat = tf;            ...

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

343. Laya自适应的问题,pc上面自己实现自适应,是bug还是我写的不对呢,,, [ 50%]

...aya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.alignH = Stage.ALIGN_LEFT; Laya.stage.alignV = Stage.ALIGN_TOP; Laya.stage.screenMode = Stage.SCREEN_NONE;   我们自己根据界面的宽高和浏览器的宽高去实现自适应,,, 现在问题是,窗口化打开游戏, 然后在...

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

344. laya.display.Graphics [ 50%]

...线条宽度。  textAlign:String — 文本对齐方式,可选值:"left","center","right"。 ReturnsFillBorderTextCmdfillText()method  public function fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String):FillTextCmd 在画布上绘制文本。 Parameters ...

来源: Laya2.0_api 发布时间: 20190513

345. UI-RefreshList [ 50%]

...s.refreshList.width = 443; this.refreshList.height = 622; this.refreshList.left = 30; this.refreshList.top = 30; Laya.stage.addChild(this.refreshList); this.refreshList.itemRender = ItemBox; this.refreshList.vScrollBarSkin = ""; // 创建数据 var data = this.createData(9, "初始数据"); this.ref...

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

346. tab 是否可以做到左右滑动切换view呢? [ 50%]

...          {                     console.log("Move  Left!");                 }             }         }         this.isMove = false;     }     onMouseMove():void{         this.isMove = true ;     } 2017-04-07 0 0 分享 微博 QZON...

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

347. laya.display.Graphics_API3.0 [ 50%]

...,比如"#ff0000"。 textAlign: string 文本对齐方式,可选值:"left","center","right"。 lineWidth: number 镶边线条宽度。 borderColor: string 定义镶边文本颜色。 Returns FillTextCmd fillText fillText(text: string | WordText, x: number, y: number, font: string, color: st...

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

348. ts加密md5码封装 [ 50%]

....from(args); x.forEach(n => t[0] = t[0] + n); return t[0]; } loop_shift_left(n: number, bits: number) { return (n << bits) | (n >>> (32 - bits)); } A = 0x67452301; B = 0xefcdab89; C = 0x98badcfe; D = 0x10325476; F(b: number, c: number, d: number) { return (b & c) | (~b & d)...

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

349. h5项目打包成单机版本的apk 出现卡死 [ 50%]

...有关系吗: <div style="position:absolute;top: 32%;width: 80%;left: 10%;text-align:center;"> <img src="loading_logo.png" style="width: 100%;max-width:500px;" /> </div>

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

350. PC端web应用开发,想把生成的canvas放进一个div中并调整在页面上的位置,请给出一个方案。 [ 49%]

...标签时laya自动生成的,生成时的css是: position: absolute;  left: 0px;  top: 0px;  background: rgb(255, 255, 255);  transform-origin: 0px 0px 0px;  transform: matrix(0.8, 0, 0, 0.8, 0, 0);   但我想把该canvas放进一个div中,然后把div在页面上调整位置。该怎...

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