【发布时间】:2010-11-27 09:02:24
【问题描述】:
这是我的代码:
<div id="a" style="position:absolute;top:300px;width:100px;height:100px;background:red;color:black;word-wrap:break-word;">
<div id='a2' contenteditable=true >
</div>
</div>
此代码在 firefox 中自动换行,但在 chrome 中我无法自动换行,
那么如何在 chrome 上制作 &nbsp; 自动换行?
谢谢
【问题讨论】:
-
"nbsp" 代表“不间断空间”,因此看起来您正在尝试同时吸吮和吹气。你能描述一下你真正想要解决的问题吗?
标签: javascript firefox google-chrome