CSS foundation — Chrome browser saved password backfill with default white background

Time:2020-8-20
Welcome to my personal blog: http://www.xiaolongwu.cn

problem

Sometimes, the theme color of our page is dark. After successful login in the Chrome browser, there will be a function to remember the password. This function is a function of chrome. Then the next time we log in, we will prompt us to select the account number and password remembered by the browser. After selection, there will be a white background, which does not match our own writing style;

Of course, this is also the default color of the browser. We can modify it;

Solution

This problem can be solved by adding CSS

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

GitHub resource address: CSS basis — Chrome browser saved password with default white background

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 […]