最新铬版中的输入自动填充字体大小(95)

发布于 2025-02-05 02:57:32 字数 738 浏览 2 评论 0原文

我对更改字体家庭和字体大小的可能性进行输入自动填充感兴趣。

最古老的镀铬版中有一些方法,但不幸的是,自95个版本的铬以来,这种可能性已被删除。

    &:-webkit-autofill,
    &:-webkit-autofill:hover,
    &:-webkit-autofill:focus,
    &:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px transparent inset;
        transition: background-color 5000s ease-in-out 0s;

        /* this line can change text color for new chrome version */ 
        -webkit-text-fill-color: ${primary};
    }

    /* old way for changing font properties in autofill */ 
    &:-webkit-autofill::first-line {
        font-size: 2rem;
        font-weight: bold;
        color: pink;
    }

那么,您知道在最新的铬版(101)中做这种事情的方法吗?

I'm interested in possibility for changing font-family and font-size for input autofill.

There was some methods in oldest chrome version, but unfortunately this possibility was removed since 95 version of chromium.

    &:-webkit-autofill,
    &:-webkit-autofill:hover,
    &:-webkit-autofill:focus,
    &:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px transparent inset;
        transition: background-color 5000s ease-in-out 0s;

        /* this line can change text color for new chrome version */ 
        -webkit-text-fill-color: ${primary};
    }

    /* old way for changing font properties in autofill */ 
    &:-webkit-autofill::first-line {
        font-size: 2rem;
        font-weight: bold;
        color: pink;
    }

So do you know any method for doing such a thing in latest chromium version(101) ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文