开发者

how to wrap textarea [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜