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

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

11. 关于 iframe跳转地址 [ 92%]

...e.marginheight="0px" ; iframe.scrolling = "no"; iframe.border="0px" iframe.style.position = "absolute"; iframe.style.left = "0px"; iframe.style.top = "0px"; iframe.style.zIndex = 66666; iframe.style.backgroundColor = "#ffffff"; iframe.src = url; iframe.style.width = "100%"; iframe.style.height = doc...

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

12. 一行居中的动态文字,怎么设置不同样式。 [ 92%]

一行居中的动态文字,怎么设置不同样式。 <p style='align-content: center'><span style='color:red'>提示:</span><span style='color:#FFF'>我是随时可更改的动态文本</span></p>类似这种效果。 2017-04-13 添加评论 免费帖 --> ...

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

13. HTMLDivElement中image标签多次赋值报错 [ 91%]

...reateParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = '<span style="color:black;font-weight:bold;font:24px Arial">  a paragraph from external html.</span>\ <br/>\ <span style="color:w...

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

14. 分享一个自己做的游戏公告功能,跑马灯效果 [ 90%]

...aultX this.html.contextHeight = 55 this.html.contextWidth = 1180 this.html.style.fontSize = 34 this.html.style.wordWrap = false this.html.style.lineHeight = 55 this.html.style.align = "left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.h...

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

15. HTMLDivElement 2.0 只有单行内容是 水平排版不居中 [ 90%]

...     代码如下   htmlDiv.width = 300; htmlDiv.height = 100; htmlDiv.style.color =  color; htmlDiv.style.leading = leading; htmlDiv.style.align = "center"; htmlDiv.innerHTML = "确定要退出副本吗?"; 附件 : --> 2019-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

16. 分享:自定义鼠标(光标)样式——基于body修改style [ 89%]

分享:自定义鼠标(光标)样式——基于body修改style 使用社区实例无果后,在小明大佬的点拨下,实现了自定义功能。 定义: cursor: url(' # ');# = 光标文件地址      (注意文件格式必须为:.cur 或 .ani)。 注意:定义完自定义的...

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

17. 如何动态在index.html加入script [ 89%]

...Id("layaCanvas"); if ((sys.platform !== sys.DESKTOP_BROWSER)) { gameCanvas.style.position = "fixed"; } else { gameCanvas.style.position = "static"; } html5Full.toLandscape(); </script>  这边,我知道创建script标签的方法 var body = laya.utils.Browser.window.document.getElementsByTa...

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

18. [LayaAirIDE2]富文本:HtmlDivElement是否支持垂直居中? [ 89%]

...: 吃番茄还是西红柿 var html = new Laya.HTMLDivElement(); html.style.lineHeight = 30; html.style.width = 300; html.style.align = "center"; html.style.valign = "middle"; html.innerHTML = "<span> 我的第一行要换行我的第一行要换行我的第一行要换行我的第一行要...

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

19. laya.html.HtmlElement_API3.0 [ 89%]

...tmlElement Index Constructors constructor Properties _attrs name obj space style text type pool Methods fetchAttributes getAttr getAttrBool getAttrFloat getAttrInt getAttrString reset setAttr getFromPool returnToPool Constructors constructor new HtmlElement(): HtmlElement Defined in laya/html/HtmlEl...

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

20. 文本排版错乱 [ 88%]

...new HTMLDivElement(); html.width=580; html.x=100; html.innerHTML="<span style='font-weight:bold;font:22px'>1771,英国科学家普利斯特利</span><span style='font:22px'>的实验结论:</span>" + "<span style='font:22px' href='https://ask.layabox.com/www.baidu.com '&...

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