CSS foundation — the problem of using the default white background to backfill the saved password of Chrome browser

Time:2020-6-27
Welcome to my personal blog: http://www.xiaolongwu.cn

problem

Sometimes, the theme color of our page is dark. After the successful login in Chrome browser, there will be a password remembering function. This function is brought by chrome. Next time we log in, we will be prompted to select the account and password that the browser remembers. After selection, there will be a white background, which is not matched with our own writing style;

Of course, this is also the browser’s default color, which we can modify;

Solution

Add the following CSS to solve this problem

:-webkit-autofill,
:-webkit-autofill:hover,
:-webkit-autofill:focus,
:-webkit-autofill:active {
    //Backfill text color settings
    -webkit-text-fill-color: #2b739d !important;
    transition: background-color 5000s ease-in-out 0s;
}

GitHub resource address: CSS foundation — the problem of default white background when the password saved by Chrome browser is backfilled

My personal blog: http://www.xiaolongwu.cn

CSDN blog address: https://blog.csdn.net/wxl1555

If you have doubts or doubts about the content of my blog, please leave a message in the comments area below or email me to learn and progress together.

Email: [email protected]

Recommended Today

Knowledge Graph Reasoning for Joint Semantic and Data-Driven Path Representation

original Joint semantics and data-driven path representation for knowledge graph reasoning publishing Neurocomputing Volume 483 Issue C Apr 2022 pp 249–261 https://doi.org/10.1016/j.neucom.2022.02.011 declare The copyright belongs to the original author and the publisher. If there is any infringement, please contact to delete Summary Reasoning on large-scale knowledge graphs is of great significance for applications such […]