Most elegant way to force a TEXTAREA element to line-wrap, *regardless* of whitespace

前端 未结 7 1044
深忆病人
深忆病人 2020-12-14 17:18

Html Textarea elements only wrap when they reach a space or tab character. This is fine, until the user types a looooooooooooooooooooooong enough word. I\'m looking for a wa

7条回答
  •  鱼传尺愫
    2020-12-14 18:20

    I tested the , and ­ techniques. All three worked well in IE 7, Firefox 3 and Chrome.

    The only one that did not break the copy/paste was the tag.

提交回复
热议问题