How to make Textarea text domain width and height Width and Height automatically

This article shared everyone about how to let Textarea text domain width and height Width and Height are automatically adapted. Xiaobian feels quite practical, so share it with you to do a reference. Let’s take a look at Xiaobian.

  TEXTAREA width, high degree of automatic adaptation processing method    .comments {width: 100%; / * Automatic adaptation Father Layout Width * / Overflow: Auto; Word-Break: Break-all; / * Solve breaks in IE (prevent automatic changes in one line display, mainly solving IE compatibility issues, IE8 When setting up a width of 100%, When the text domain type exceeds one line, when we double-click the text content, it will automatically change, so it can only use IE's proprietary breakstream attribute "Word-Break or Word-Wrap" to control its breaks) * /}        150)? '150px' :( this.ScrollHeight + 5) + 'PX ');    Thank you for reading! About how to make Textarea text domain width and height Width and Height Automatic adaptation is shared here, I hope that the above can help everyone, let everyone learn more knowledge. If you think the article is good, you can share it out to let more people see it.!