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

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

21. styles.xml报错 [ 88%]

styles.xml报错 按钮存为默认属性后就报错,LayaAirIDE_1.7.11 - 1.7.13都试了 <html type="Button" props="label=label@@!@@x=-171@@!@@y=431@@!@@stateNum=1"> <body> <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1e...

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

22. HTMLDivElement富文本居右问题 [ 88%]

...vElement = this.lb; lb.width = 100; lb.height = 24; const html1 = '<div style="float:right;"><span>1</span><span>2</span></div>'; const html2 = '<span style="float:right;">1</span>'; const html3 = '<div style="width:50;text-align:right;"><span...

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

23. iframe嵌入laya做的html5,手机端浏览时iframe处不响应触摸滑动? [ 88%]

...ame = Laya.Browser.document.createElement("iframe"); this.iframe.style.position ="absolute";//设置布局定位。这个不能少。 this.iframe.style.zIndex = 1000;//设置层级 this.iframe.style.left ="100px"; this.iframe.style.top ="100px"; this.iframe.sr...

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

24. 如何实现聊天图文混排的聊天 气泡背景效果? [ 87%]

...气泡随着聊天内容变化的圆角矩形 用的HTMLDivElement,但是style里不能设置background为图片啊,只能为color 在html里是这样写的 <span>右边</span>     <div style="width:422px;">         <img style= " display:inline;  float:right; " src...

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

25. 使用HtmlDivElement取不到实际大小 [ 87%]

...reateParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "<div>"; html += "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</span>"; html...

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

26. HtmlDivElement下划线跑到别的文字下面。 [ 87%]

...DivElement下划线跑到别的文字下面。 let str1:string = "<span style='color:#ffcc11;'>33333333333333333333333333 </span><a style='color:#ffcc11;' href='aaa28'>中国中国中国</a><span style='color:#ffcc11;fontSize:26;'>嗯嗯嗯嗯嗯嗯噢噢噢</span&gt...

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

27. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 87%]

...   this.iframe.src = "https://www.layabox.com/";         this.iframe.style.position = "fixed";           this.iframe.style.top = "0";         this.iframe.style.bottom = "0";         this.iframe.style.left = "0";         this.iframe.style.right = "0";         this.iframe.sty...

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

28. Layabox web 复制一段文字到剪贴板 [ 86%]

...firmBtn); } this.newMask = document.createElement("div");  this.modlueDiv.style.visibility = "visible";  var clipboard = new ClipboardJS("#confirm", { text: function () { return str; } })  clipboard.on("success", function (e) { console.log("ok:") console.log(e) clipboard.destroy(); }) clipboard.o...

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

29. HTMLDivElement <p><p/>换行<br/>的问题 [ 86%]

...有行高lineHeight var html3:HTMLDivElement=new HTMLDivElement(); html3.style.lineHeight=30; html3.style.width=300; html3.style.align="center"; html3.innerHTML="&lt;span&gt;我的第一行要换行&lt;/span&gt;&lt;br/&gt;&lt;span&gt;BBBBBBBBBBB&lt;/span&gt;"; Laya.stage.addChild(html3);   2016-12-...

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

30. laya.html.dom.HTMLDivElement对象设置自动换行导致栈溢出异常 [ 85%]

...动换行导致栈溢出异常 laya.html.dom.HTMLDivElement对象 设置 style.wordWrap = false; 会导致 Maximum call stack size exceeded异常! 2017-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 answer...

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