[CSS] prohibits Google browsers from allowing you to define and adjust multi-line text boxes and google multiple lines.
As we all know, you cannot adjust the multi-line text box Textarea by yourself. For example, if you want to adjust it, you need to write a lot of scripts:
This is good, because in many cases, we do not need to open it to users to adjust the text box. We usually only need to set the col and row attributes to fix their size.
However, Google Chrome, for, a common:
<textarea></textarea>
It can be easily adjusted, as shown in the following figure:
This will drag the layout of our page, sometimes debugging does not know what is going on, I thought the style was not written,
You may think this is Google's fault. Who told the user to be able to tamper with this multi-line text box?
However, we can do a better job. After adding style = "resize: none" to the end, users cannot drag in Google's browser, such as the text box on the right.
The above two figures are actually the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">We can see that style = "resize: none" has no effect on IE.