大约有 240 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0074 秒)
...ter; 水平对齐方式 line-height:20px; 行高 background-color:#ff0000; 背景颜色 border-color:#ff0000; 边框颜色 width:100px; 对象宽度 height:100px; 对象高度 示例用法: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML = " a span span2 p "; Public Properties Hide Inhe...
来源: Laya2.0_api 发布时间: 20190513
...aleMode = Laya.Stage.SCREEN_VERTICAL;//自动竖屏 //创建舞台,默认背景色是黑色的 var txt = new Laya.Text(); //设置文本内容 txt.text = "Hello Layabox"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66;...
来源: Laya_社区 发布时间: 20180715
....js 代码如下 (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_ty...
来源: Laya_社区 发布时间: 20160803
...取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheA...
来源: Laya2.0_api 发布时间: 20190513
...ited from Text.borderColor Defined in laya/display/Text.ts:576 文本边框背景颜色,以字符串表示。 Returns string Inherited from Text.borderColor Defined in laya/display/Text.ts:580 文本边框背景颜色,以字符串表示。 Parameters value: string Returns void cacheAs get cacheA...
来源: Laya3.0_api 发布时间: 20231115
....WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, onFrame); this.createTime = 0; function onFrame() { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧...
来源: Laya2.0_文档 发布时间: 20210715
....WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, this.onFrame); } onFrame(): void { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个...
来源: Laya2.0_文档 发布时间: 20210715
...取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheA...
来源: Laya2.0_api 发布时间: 20190513
...取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheA...
来源: Laya2.0_api 发布时间: 20190513
..., 640,WebGL); //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { //如果创建对象时间为100帧间隔后 if(createTime>=100) { //每200帧间隔创建30...
来源: Laya2.0_文档 发布时间: 20210715