IE7 contentEditable自动换行

Ike*_*nez 11 html internet-explorer contenteditable internet-explorer-7

我有以下代码:

<html>
Run Code Online (Sandbox Code Playgroud)

<style type="text/css">

DIV { display:inline; border: solid red 1px; }

.editable { background:yellow; }

</style>
Run Code Online (Sandbox Code Playgroud)

<div class="editable" contentEditable="true"> This is test text. This is test text.This is test text.This is test text.This is test text.Thihis is test text.This is test text.</div>

<div class="editable" contentEditable="true"> short </div>

<div class="editable" contentEditable="true"> This is test text.This is test text.This is test text.his is test text.Thihis is test text.Thihis is test text.Thihis is test text.Thi </div>
Run Code Online (Sandbox Code Playgroud)

我需要IE7(IE6不需要和FF3.x工作正常)正确包装文本,如果我从div中删除contentEditable ="true"它会这样做.只要尝试使用和不使用contentEditable的代码,你就会明白我的意思.使浏览器窗口足够小,以便您查看文本的包装方式.

谢谢.

Amr*_*mra -1

您尝试过溢出属性吗?