最新铬版中的输入自动填充字体大小(95)
我对更改字体家庭和字体大小的可能性进行输入自动填充感兴趣。
最古老的镀铬版中有一些方法,但不幸的是,自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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论