A solution to prevent input[text] and textarea from having a yellow border in focus _javascript tips in Chrome browser

Source: Internet
Author: User
In particular Input[text] and textarea, and in the lower-right corner of the textarea also have a mouse to drag the table textarea size of the function, as shown in the following figure:

Input[text]:

TextArea

Sometimes the yellow border is very affecting the page effect, and textarea drag to change the size of the direct impact on the layout, so in order not to make these redundant features and effects of the page, you can use a few CSS to remove the default effect of the Chrome browser, the code is as follows:

To remove a yellow border from the focus of a table item:

Copy Code code as follows:

Input,button,select,textarea{outline:none}

To cancel the textarea drag resizing function:
Copy Code code as follows:

Textarea{resize:none}

After merging:
Copy Code code as follows:

input,button,select,textarea{Outline:none;}
textarea{font-size:13px; resize:none;}

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.