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

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

171. 使用typescript开发项目,解决文件引用顺序问题 [ 69%]

...//helloworld.js var txt = new Laya.Text(); txt.text = "Hello Layabox"; txt.color = "#ffffff"; export default txt  二、发布 安装工具,在ide上使用快捷键【ctrl+` 】打开终端,输入下面指令安装打包需要的node.js工具,因为之前已经安装过typescript,所以下...

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

172. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 69%]

...div.style.fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#black"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl,'<img src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;"></img>'); } div.p...

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

173. laya.display.Input_API3.0 [ 68%]

...ightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize editable filters focus font fontSize globalRotation globalScaleX globalScaleY...

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

174. 2.0字体比较小的时候,某些字显示不全 [ 68%]

...n LayaSample() { //初始化引擎 Laya.init(480, 640,WebGL); Laya.stage.bgColor = "#FFFF33"; var txt:Text = new Text(); //给文本的text属性赋值 txt.text = "gggggqqqqqqqyyyyyyyvvvv"; txt.align = "center"; txt.fontSize = 15; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.leading = 5;...

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

175. laya.display.Text [ 68%]

...unds方法获取。设置为true,对性能有一定影响。 Sprite  bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bold : Boolean 指定文本是否为粗体字。 默认值为 false,这...

来源: laya_api 发布时间: 20170929

176. laya.display.Input [ 68%]

...unds方法获取。设置为true,对性能有一定影响。 Sprite  bgColor : String[override] 文本背景颜色,以字符串表示。 Input blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bold : Boolean 指定文本是否为粗体字。 默认值为 fa...

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

177. laya.display.Text [ 68%]

...unds方法获取。设置为true,对性能有一定影响。 Sprite  bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bold : Boolean 指定文本是否为粗体字。 默认值为 false,这...

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

178. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 68%]

...550, 400); this.info = new Laya.Text(); this.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, onDeviceorientation); function onDeviceorientation(absolute, rota...

来源: Laya2.0_文档 发布时间: 20210714

179. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 68%]

...fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#black"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl[i],'<img src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;...

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

180. HtmlDivElement超链接问题 [ 68%]

...会划到文字上面而且比较模糊 2. <a href='test.html' style='color:#000000;text-decoration:none'>Test </a> text-decoration:none这个属性不能取消显示下划线   1或2的问题能否解决其中一个,不然显示效果非常不好   2018-03-13 添加评论 免费帖...

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