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

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

101. 屏幕适配-自动横屏 [ 76%]

...new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Te...

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

102. 屏幕适配-自动竖屏 [ 76%]

... new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Te...

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

103. LayaAir下TTF字体的使用方式? [ 76%]

...置在h5目录下 步骤二:在html标签下以CSS格式嵌入TTF字体 font-family为字体名称 在项目中设置字体的font 编译后效果如下:   问题补充:   以上方法在canvas模式下正常,webGL模式下无效,这个是因为在用到该字体样式的时候,ttf字...

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

104. 屏幕适配-自动竖屏 [ 75%]

... new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } } new SmartScale_Portrait();module laya { import Stage = Laya.Stage...

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

105. 屏幕适配-自动横屏 [ 75%]

...new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } } new SmartScale_Landscape();module laya { import Stage = Laya.Stag...

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

106. laya.display.Graphics [ 75%]

...组三角形 Graphics  fillBorderText(text:String, x:Number, y:Number, font:String, fillColor:String, borderColor:String, lineWidth:Number, textAlign:String):FillBorderTextCmd 在画布上绘制“被填充且镶边的”文本。 Graphics  fillText(text:String, x:Number, y:Number, font:String, ...

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

107. HTMLDivElemen设置字体 [ 74%]

HTMLDivElemen设置字体 font 里面还要加 字号才可以么? 这样子font:24px Arial' 2018-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 你可以参考这个看一下http://ldc...

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

108. UI-TextArea [ 74%]

... function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; var scaleFactor = Browser.pixelRatio; Laya.stage.addChild(ta); } })();module laya { import S...

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

109. 文本-HTML文本 [ 74%]

...aragraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "使用"; html += "HTMLDivElement"; html += "创建的"; html += "HTML文本"; p.innerHTML = html; } function showExternalHTML() { var p = new HTMLIframeElement(); Laya.stage...

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

110. UI-TextArea [ 74%]

...st TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; impo...

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