How can Textarea in JAVA achieve line wrapping beyond a certain width?
PHP中文网
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.

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
某草草

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!