"CSS" prevents Google Chrome from allowing definitions to adjust multiline text boxes.

Source: Internet
Author: User

As we all know, multi-line text box textarea can not be arbitrarily adjusted, such as, if you want to adjust, you have to write a lot of script:


This is good, because in many cases, we do not need to open to the user to adjust the text box, often just need to set the Col and row properties, fixed its size can be.

However, Google Chrome, for, an ordinary:

<textarea></textarea>
But it can be easily adjusted as follows:


This will drag our page layout, and sometimes debugging do not know how to do, and thought the style is not written well,

You can think of this is the Google browser error, who called the user himself is nothing to tamper with this multi-line text box?

However, we can do a little more perfect, in the back add style= "Resize:none", users in Google Browser can not drag, such as the right text box.

The above two graphs 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 ">
You can see that style= "Resize:none" has no effect in IE.

"CSS" prevents Google Chrome from allowing definitions to adjust multiline text boxes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.