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

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

531. 论坛的简单跑酷地板间距疑问 [ 78%]

...于增加地板,新地板产生条件是前一个旧地板(this.x + this.width) < this.maxRight,this.x初始都是852,是正数,this.width是旧地板宽度也是正数,所以只有当前一个旧地板的this.x等于负值时等式才会成立,也就是前一个旧地板有部分图形...

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

532. UI控件固定位置在ipad分辨率下有问题 [ 78%]

...计高度,高度根据屏幕比率大小而变化*/ static SCALE_FIXED_WIDTH: string; /**应用保持设计高度不变,宽度根据屏幕比缩放,stage的高度等于设计宽度,宽度根据屏幕比率大小而变化*/ static SCALE_FIXED_HEIGHT: string; /**应用保持设计比例不变...

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

533. HtmlDivElement文本的居中与不换行冲突问题 [ 78%]

...yle.wordWrap有冲突。体现在,我设置了文本的宽度_html.style.width = 750,居中_html.style.align=“center”,换行_html.style.wordWrap=false,_html.innerHtml="<font>显示的字符</font>"时,文本不会换行,我的舞台是750宽度的,按理来说显示的...

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

534. view和panel关于mouseThrough的区别 [ 78%]

...        * <p>影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。</p>          * @default false    不可穿透,此对象的鼠标响应区域由width、heigh...

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

535. laya.utils.Utils [ 78%]

...itDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils  getGID():int[static] 获取一个全局唯一ID。Utils  getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入...

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

536. 关于适配有点疑惑 [ 78%]

...码测试几种适配模式,有一些困惑   我分别用noscale, fixedwidth, fixedheight进行试验, 代码如下:var rect; (function() { Laya.init(550, 400); // Laya.stage.scaleMode = Stage.SCALE_SHOWALL; // Laya.stage.scaleMode = "noscale"; // Laya.stage.scaleMode = "fixedwidth"; Laya.st...

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

537. 动画不显示 [ 78%]

...             {                 m_Role.pos((Laya.stage.width - 27)/2,(Laya.stage.height - 75)/2);             }             else{                 m_Role.pos((Laya.stage.width - 14)/2 + 15,(Laya.stage.height - 75)/2);             }      ...

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

538. 【简单跑酷--JS版】---Lv.6 终篇 [ 78%]

...lay.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 ...

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

539. 如何监听移动端软键盘的弹出和收回? [ 77%]

....border=true; textInput.multiline=true; textInput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; addChild(textInput); textInput.addEventListener(FocusEvent.FOCUS_IN,onFocusIn); textInput.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut); private function onFocusIn(event:FocusE...

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

540. 苹果笔记本下Safari中显示一半 [ 77%]

...电脑下safair显示一半,跟tranform有关 <canvas id="layaCanvas" width="760" height="650" style="position: absolute; left: 0px; top: 110px; background-color: rgb(255, 237, 118); transform-origin: 0px 0px 0px; transform: matrix(0.5, 0, 0, 0.5, 311, 0);"></canvas> 其他电脑上:...

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