У меня есть следующий код:
<html>
<style type="text/css">
DIV { display:inline; border: solid red 1px; }
.editable { background:yellow; }
</style>
<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>
И мне нужен IE7 (не нужный IE6, и FF3.x хорошо работает) обертывать текст правильно, который он делает, если я удаляю contentEditable = "верный" от отделений. Просто попробуйте этот код и без contentEditable, и Вы будете видеть то, что я имею в виду. Сделайте окно браузера достаточно маленьким, таким образом, Вы видите, как текст переносится.
Спасибо.