As we all know, the multi-line text box Textarea cannot be adjusted casually, as shown below. If you want to adjust it, you have to write a lot of scripts:
This is good, because in many cases, we don't need to allow users to adjust the text box. Often we just need to set the col and row attributes and fix their size.
However, for Google Chrome, an ordinary:
<textarea></textarea>
This will mess up the layout of our page. Sometimes I don’t know what’s going on when debugging, and I think the style is not written well.
You can think of it as Google Chrome It's wrong, who told the user to mess around with this multi-line text box when they have nothing to do?
However, we can make it more perfect and add style="resize:none" at the end. Users will not be able to drag in Google Chrome, as shown in the right text box in the picture above.
The above two pictures are actually the following codes:
You can see that style="resize:none" has no effect in IE.