Remove or change the default borders of input and textarea on chrome.

Source: Internet
Author: User

1. Chrome users all know that when the focus of the mouse is on the input and textarea elements, chrome adds a yellow border to them by default, which is not a feature of chrome, it is the effect of CSS, the outline attribute.
You can use the following CSSCodeRemove the borders of all elements:

 
*: Focus{Outline:None;}

Use the following code to remove the border of the element you want to remove:

 
1 . Nohighlight: Focus{2Outline:None;3}

You can also add the border you want to add to the element:

1 . Changeborder: Focus{2 Outline:Blue solid 4px;3}

2. After logging on with chrome once and recording cookies, open it again. Chrome records the last input, and the background image will be overwritten with a pale yellow background color. Click the mouse, the background image is displayed. How can this be solved? When I encountered this problem, I had a headache. So far I have not found any good solutions. If any information is found, please share it.

3. By default, Chrome users can control the size of textarea. Add the following sentence to CSS.

 
Textarea{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.