how to wrap the te开发者_开发百科xt in textarea so that word will not be overflown to rightside and written in new line.
Set the wrap
attribute to "hard"
like this:
<textarea
cols="10"
rows="4"
wrap="hard"></textarea>
According to a www.htmlref.com, the textarea wrap attribute is not fully standardized, but wrap="off | physical | virtual" is supported by IE and wrap="hard | off | soft" is supported by Netscape 4 (whatever that means for modern browsers).
精彩评论