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

大约有 1,001 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)

541. 屏幕适配-对齐模式 [ 57%]

..."#232628"; } } } new laya.SmartScale_Align_Contral();package { import laya.display.Stage; public class SmartScale_Align_Contral { public function SmartScale_Align_Contral() { Laya.init(100, 100); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = ...

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

542. Font.defaultFont设置默认字体无效 [ 57%]

...defaultFont = "SimHei" Laya.init(600, 1200, WebGL); var txtName = new laya.display.Text(); txtName.fontSize = 20; txtName.color = "#ffffff"; txtName.align = "center"; txtName.stroke = 2; txtName.text = "设置全局字体无效"; Laya.stage.addChild(txtName);   2017-12-27 添加评论 免费帖 -->...

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

543. 请问在HTMLDivElement中onclick属性应当怎么用呢? [ 57%]

...呢? <img src="30.png" style="width:100;height:100" onclick="this.style.display='none';" />   例如如上代码,有onclick属性,但是具体如何使用呢? 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

544. label 和text 有啥区别 感觉差不多? [ 57%]

...自: label和text都是关于文本的操作,label是ui下的,Text是display下的,他们再使用上还是有区别的 建议参考下API:Text                          Label 2017-01-17 0 0 分享 微博 QZONE 微信 jiye 赞同来自: 貌似label封装了 text 2017-01-17 0 0 ...

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

545. Animation怎么设置从某个点调到某个点? [ 57%]

...发现没有 设置到某一帧。。。。。 后面向上找父类 laya.display.AnimationPlayerBase ,发现了这个方法,可以使用~   gotoAndStop(position:*):void 将动画切换到指定帧并停在那里。 2019-03-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

546. HTMLDivElement使用a标签无法点击 [ 57%]

...href='http://www.baidu.com' target='_blank' style='height:30px;width:150px;display:block;color:#ffffff'>百度_blank</a>"; 点击无任何反应。 想要打开新页面,window.open被拦截,a标签不能点击,有其他办法吗 2018-03-19 添加评论 免费帖 --> 分享 微博 QZO...

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

547. laya.resource.nativecontext..context2d.CONTEXT2D_FUNCTION_ID_API3.0 [ 56%]

LAYA_API #laya_nav { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media...

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

548. 解决ios微信自动播放背景声音 [ 56%]

...子使用引擎1.7.9】   在index中添加audio标签 <audio style="display:none; height: 0" id="bg-music" preload="auto" loop="loop"></audio> 具体详情看demo吧。 附件 : --> laya_soundDemo1.7_.9_.rar 2017-12-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

549. 物理引擎-牛顿摆 [ 56%]

...nsform.d) }); } } } new laya.Physics_NewtonsCradle();package { import laya.display.Sprite; import laya.display.Stage; import laya.renders.Render; import laya.utils.Browser; import laya.webgl.WebGL; public class Physics_NewtonsCradle { private const stageWidth:int = 800; private const stageHeight:int...

来源: Laya_示例 发布时间: 20241001

550. layaflash下构造函数需要注意哪些问题? [ 56%]

...下是代码示例: 作为父类A.as的代码:package { import flash.display.Sprite; public class A extends Sprite { protected var data:String = "layabox"; public function A() { super(); } } }   作为子类B.as的代码:package { public class B extends A { public function B() { this.data =...

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