Modify the default style of Google's browser and the style of Google's browser

Source: Internet
Author: User
Tags transparent color

Modify the default style of Google's browser and the style of Google's browser

1. The input background automatically filled by Chrome is yellow:

Box-shadow adds a shadow to the box. By default, it is added outside the box, and inset is changed to inner.

Box-shadow: H horizontal offset V vertical offset B blur size S shadow size C shadow color O/I inner and outer shadows;

To view the shadow effect, first determine the shadow size and then determine the offset distance.

Input:-webkit-autofill {-webkit-box-shadow: 0 0 0px 100px white inset! Important; // It cannot be any transparent color. Use the internal shadow to cover the default yellow background box-shadow: 0 0 0px 100px white inset of the browser! Important ;}

2. The blue border when the input gets the focus

You can use the outline attribute of an element (without occupying the length and width space), outline: none.

Related Article

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.