开发者

how to wrap textarea [closed]

开发者 https://www.devze.com 2022-12-12 22:56 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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