如何更改Safari自动完成密钥图标

发布于 2025-02-13 17:07:14 字数 509 浏览 0 评论 0原文

我想调整Safari的默认图标颜色,以更好地匹配UI。

这是可以实现的吗?

::-webkit-credentials-auto-fill-button {
    /*below works to hide*/
    visibility: hidden;
    position: absolute;
    right: 0;
    /*below do NOT work to alter*/
    font-size: 100px;
    color: red;
}

PS本地尾管解决方案将是理想的:)

I want to tweak the default icon color for Safari to match the UI better.

Is this something, that can be accomplished at all?

enter image description here

::-webkit-credentials-auto-fill-button {
    /*below works to hide*/
    visibility: hidden;
    position: absolute;
    right: 0;
    /*below do NOT work to alter*/
    font-size: 100px;
    color: red;
}

p.s. native tailwind solution would be ideal :)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽你眉间 2025-02-20 17:07:14

这对我有用。将包裹成一些尾风班,仅此而已。

input::-webkit-credentials-auto-fill-button {
    background-color: white;
}

这个问题的重复:
无效的选择器Selector webkit-credentials-credentials-credentials-auto-auto-fill-button

This works for me. Will wrap into some tailwind class and that's it.

input::-webkit-credentials-auto-fill-button {
    background-color: white;
}

Duplicate of this question:
Invalid selector webkit-credentials-auto-fill-button

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文