大约有 683 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)
Laya_社区(327) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(38) Laya2.0_示例(19) Laya_示例(15)
...建input z_file.style="filter:alpha(opacity=0);opacity:0;width: 29%;height:11%;"; z_file.type ="file";//设置类型是file类型。 z_file.id ="z_sfz";//设置ID。 z_file.accept="image/*";//设置文件的格式为png; ...
来源: Laya_社区 发布时间: 20171128
...Air 2.0 在打包华为快游戏时, Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getTexture()会导致游戏卡死,无报错。try catch后错误信息也没有。 输出错误信息: TIPS:已经定位到了这句代码 附件 : --> 2023-11-16 添加评论 免...
来源: Laya_社区 发布时间: 20231116
...求大神解答 // 初始化ListView function createListView(x, y, width, height, item_width, item_height) { var list = new Laya.List(); list.itemRender = initItem(item_width, item_height); list.repeatX = 1; list.size(width, height); list.x = x; ...
来源: Laya_社区 发布时间: 20180724
...现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; te...
来源: Laya3.0_文档 发布时间: 20230629
... bgI = new Image(bgNameS); bgS.addChild(bgI); trace(bgS.width,bgS.height);//此时打印的宽高都为0 这直接会影响到vbox和hbox的排列,如下 var vbox:VBox = new VBox(); vbox.space = 30; addChild(vbox); bgS1 = new Sprite(); bgI1 = new Image(bgNameS); bgS1.addCh...
来源: Laya_社区 发布时间: 20170828
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite enableFog : Boolean 获取是否允许雾化。 Scene3D enableLight : Boolean = true 是否启用灯光...
来源: Laya2.0_api 发布时间: 20190513
...获取Html文本的实际内容、获取html文本的实际宽高(contextWidth、contextHeight) 示例如下:var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:String = "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDiv...
来源: Laya_社区 发布时间: 20161027
... 2.2 refit函数: ```java private function refit():void { mapDiv.style.width = Browser.width / Browser.pixelRatio + "px"; mapDiv.style.height = Browser.height / Browser.pixelRatio + "px"; } ``` refit()使百度地图充满整个窗口,由于侦听了resize事件,在窗口resize...
来源: Laya2.0_文档 发布时间: 20210715
...info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void...
来源: Laya3.0_文档 发布时间: 20230303
...log.scale(1, 1); Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doOpen, [dialog])); } 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: class Dia...
来源: Laya_社区 发布时间: 20180620