[]HtmlDivElement限制文本宽度无效?
this.labaContent = new Laya.HTMLDivElement();
this.labaContent.style.fontSize = 22;
this.labaContent.style.width=100;
this.labaContent.style.wordWrap=false;
this.labaContent.x = 60;
this.labaContent.y = 5;
为什么还是不行呢?请问 我的文本是通过innerHTML <span>输出的
this.labaContent.style.fontSize = 22;
this.labaContent.style.width=100;
this.labaContent.style.wordWrap=false;
this.labaContent.x = 60;
this.labaContent.y = 5;
为什么还是不行呢?请问 我的文本是通过innerHTML <span>输出的
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
cuixueying
赞同来自:
dear_H
赞同来自:
html.style.wordWrap=false; 还是会自动扩展宽度 有什么其他方法么