大约有 162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(133) Laya3.0_文档(8) Laya2.0_文档(7) Laya_示例(4) Laya3.0_api(4) Laya2.0_示例(4) laya_api(1) Laya2.0_api(1)
...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
一行居中的动态文字,怎么设置不同样式。 <p style='align-content: center'><span style='color:red'>提示:</span><span style='color:#FFF'>我是随时可更改的动态文本</span></p>类似这种效果。 2017-04-13 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170413
...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">&#160;&#160;a paragraph from external html.</span>\ <br/>\ <span style="color:w...
来源: Laya_社区 发布时间: 20180808
...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
... 代码如下 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
分享:自定义鼠标(光标)样式——基于body修改style 使用社区实例无果后,在小明大佬的点拨下,实现了自定义功能。 定义: cursor: url(' # ');# = 光标文件地址 (注意文件格式必须为:.cur 或 .ani)。 注意:定义完自定义的...
来源: Laya_社区 发布时间: 20180723
...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
...: 吃番茄还是西红柿 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
...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
...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