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

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

201. 文本进阶使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...置(相对于画布)。 * @param font 定义字号和字体,比如"20px Arial"。 * @param color 定义文本颜色,比如"#ff0000"。 * @param textAlign 文本对齐方式,可选值:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, c...

来源: Laya3.0_文档 发布时间: 20251010

202. laya.utils.FontInfo [ 75%]

...static] FontInfo  _family : String = ArialFontInfo  _font : String = 14px ArialFontInfo  _id : uintFontInfo  _italic : Boolean = falseFontInfo  _size : int = 14FontInfoPublic Methods  MethodDefined By  FontInfo(font:String)FontInfo  Parse(font:String):FontInfo[static] FontInfo  setF...

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

203. QQ玩一玩打包问题 [ 75%]

...text/html; charset=utf-8"> <br> <p style="margin:0;font-size:20px;line-height:24px;margin-bottom: 20px"> package log. version: 1.6<br> unzip:/data/apollo_game_pkg//pkg/20180709/1021/2809_src.zip<br> unzip done...<br> /data/apollo_game_pkg/pkg/20180709/1021/cmshow_gam...

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

204. createElement('button') 问题 [ 74%]

...on'; button.value ='逐加'; button.src = "xxxxx"; button.style.width = '40px'; button.style.height = '40px'; button.style.background = "../../../bin/res/atlas/assets.png"; // mapDivx.appendChild(input); mapDivx.appendChild(button); 以上代码 全部信息 都可以显示  button.style.backgroun...

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

205. as3中,调用原生js的的时候,如何传递原生JS要用到的document.getElementById的ID过去? [ 74%]

...本身是这样子的: <body> <div id="qrcode" style="width:100px; height:100px; margin-top:15px;"></div> <script type="text/javascript"> var qrcode = new QRCode(document.getElementById("qrcode"), { width : 100, height : 100 }); function makeCode (_qrchr) { qrcode.makeCode(...

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

206. 救命!canvas定位后 点击区域偏移,求大大们解答 [ 74%]

...碰到过 官方说这样解决 Render._mainCanvas.source.style.left = "300px"; Render._mainCanvas.source.style.top = "300px"; 2017-08-22 2 2 分享 微博 QZONE 微信 survivor - 翻身做咸鱼 赞同来自: dango 这应该不会有问题。引擎版本是? 2017-08-21 1 1 分享 微博 QZONE ...

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

207. layaCanvas 的css在哪里改? [ 74%]

layaCanvas 的css在哪里改? 我想改成top:50px;上面要放个东西 附件 : --> 2018-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这个最好不要改,改这个会影...

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

208. Textarea HTMLDivElement 文本颜色滚动问题 [ 73%]

...动,这个是否能应用到 你的HTMLDivElemnt里呢。 div { width:150px; height:150px; overflow:scroll; }   2017-10-26 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hyong1986 相关问题 发起问题须知,必看!!!不...

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

209. HTMLDivElement 设置字体 [ 73%]

...        html.innerHTML = "<span style='font-weight:bold; font:24px SimHei' color='#ff0000'>欢迎你的加入</span>"             +"<span style='font-weight:bold; font:24px Arial' color='#ff0000'>欢迎你的加入</span>";             this.add...

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

210. laya.html.dom.HTMLDivElement [ 73%]

...e|false; 是否是斜体 bold:true|false; 是否是粗体 letter-spacing:10px; 字间距 font-family:宋体; 字体 font-size:20px; 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边...

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