开发者

CSS/HTML - wrapped long string inside a textarea?

can I make a string inside a textarea to wrap o开发者_StackOverflow社区n multiple lines? (to avoid the horizontal scrollbar)

Note that I have a very long string without any spaces (a encoded text), and css word-wrap properties don't seem to work on it...


What you want is default and should work properly unless you specified the wrap=on or wrap=true (not sure which but think the first) attribute! what you need to force it is wrap=hard you can however specify predetermined breaking points using the ­ character somewhere in the word. it won't be visible, but break there. you can also have a look a some function like http://php.net/manual/en/function.wordwrap.php you can also have a look at the following css settings:

overflow: scroll; 
overflow-y: scroll; 
overflow-x: hidden; 
overflow:-moz-scrollbars-vertical;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜