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

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

171. UI-Tree [ 57%]

...结构数据赋值。 label.fontSize = 20; label.color = "#FFFFFF"; label.padding = "6,0,0,13"; label.width = 150; label.height = 30; label.x = 33; label.y = 1; label.left = 33; label.right = 0; this.addChild(label); let arrow = new Clip("res/ui/tree/clip_tree_arrow.png", 1, 2); arrow.name = "arrow"...

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

172. 如何在html js代码里,获取laya.ui.Label的值呢? [ 57%]

...erscore",         valign: "middle",         text: 2e6,         padding: "0,8,0,0",         height: 20,         fontSize: 20,         color: "#eeeeee",         centerY: 0     } }, 如何在javascript中获取Label的值呢 ? <javascript>  // 获取这个Label的...

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

173. 文本基础样式(JavaScript-LayaAir基础篇(JS)-文本) [ 57%]

...体 txt.bold = true; //设置斜体 txt.italic = true; //设置边距 txt.padding = [5,5,5,5]; Laya.stage.addChild(txt); ``` ![5](img/5.png) 这里我们就可以看到字体样式、字体大小有明显的变化,文本框的最外围有一圈浅蓝色的边框,文本区的背景变为红色。...

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

174. 如何将原生iframe嵌入某个节点,像addChild那样嵌入 [ 57%]

...idth; this.frame.height=850; this.frame.style.margin="0"; this.frame.style.padding="0"; this.frame.style.left="0"; this.frame.style.top="50px"; this.frame.id="OneGou"; this.frame.style.position="absolute"; this.frame.style.zIndex=100; this.frame.src="http://www.baidu.com"; Laya.Browser.document.body...

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

175. 华为手机自带的浏览器不能播放声音 [ 55%]

...这个华为的浏览器不行,下了个QQ浏览器可以,用三星的pad测试也可以。 wudi199553 • 2017-11-20 14:22 你可以去打开其他h5游戏,试试看,万一是你的浏览器不支持呢,如果实在是只有laya的有问题,方便的话,把手机寄过来我看一下 ...

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

176. LayaFlash 怎么判断苹果IOS 还是安卓Android? [ 55%]

...统 2.3.4  navigator.appVersion = 5.0(Windows;U;Windows NT 5.1;) 2.小米Pad2  navigator.appVersion = 5.0(iPad;U;CPU OS 5_0 like Mac OC X;en-us) 2016-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueyi...

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

177. styles.xml报错 [ 55%]

...rsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"> <h3>This page contains the following errors: </h3> <div style="font-family:monospace;font-size:12px">error on line 1 at column 53:...

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

178. 竖屏项目适配问题 [ 55%]

...的避免黑边的情况,另外相对布局不是全部都能解决,像pad这种尺寸比只能退而求其次,写个判断,留下部分黑边,望采纳,谢谢! 2018-12-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 150*...

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

179. 当手机锁屏或者切换应用,部分文字背景会变黑,甚至会消失不见 [ 55%]

...ontentText.color = '#fff'; // contentText.bgColor = '#141111'; contentText.padding = '0,20,0,20'; contentText.leading = '6'; contentText.fontSize = fontSize+2; contentText.valign = 'middle'; contentText.height = 0; contentText.wordWrap = true; contentText.width = parseInt(trueWidth*0.9); contentBox....

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

180. textInput的单行输入&多行输入(TypeScript-LayaAir基础篇(TS)-文本) [ 54%]

... inputText.y = (Laya.stage.height - inputText.height >> 1) +100; inputText.padding = [2, 2, 2, 2]; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } } } new laya.HelloLayabox(); ``` 运行结果: ![2](img/2.png)

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