How can Textarea in JAVA achieve line wrapping beyond a certain width?
PHP中文网2017-05-17 10:06:49
0
2
696
Assuming that the Textarea is set to a fixed width of 100, How to implement the automatic line change when the text width exceeds 100? The problems encountered on Baidu are all solved using JTextarea, which is not what I want.
I don’t understand your question. Why do the textareas I use automatically wrap lines? If the scroll bar appears because it is too long, just use overflow-x:hidden and overflow-y:hidden to hide the scroll bar This is my textarea, set the length and width, and it will automatically wrap. Or do you not want to use the actual length and width of the textarea to limit line breaks? If this is the requirement, adding span or p inside will solve the problem
I don’t understand your question. Why do the textareas I use automatically wrap lines? If the scroll bar appears because it is too long, just use overflow-x:hidden and overflow-y:hidden to hide the scroll bar
This is my textarea, set the length and width, and it will automatically wrap. Or do you not want to use the actual length and width of the textarea to limit line breaks? If this is the requirement, adding span or p inside will solve the problem
It should be JavaScript