如何更改自动填充文本的字体大小

how can i change the font size of autofill text

提问人:Muhamad Sarhad 提问时间:8/8/2023 更新时间:8/8/2023 访问量:63

问:

我正在尝试覆盖浏览器用于自动归档的默认样式并添加我自己的样式 通过使用这个

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: #080808;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 1000px 1000px white;
  font-size: 1rem;}

但是无论我怎么尝试,字体大小都不适用,有什么解决方案吗? 我已经尝试使用Input:-Webkit-Autofill::First-Line,但没有用。

CSS 输入 自动填充

评论

0赞 Muhamad Sarhad 8/10/2023
我找不到任何修复它的方法,如果问题惹恼了您,您可以通过在输入字段上使用 autocomplete=“off” 来禁用自动填充。

答: 暂无答案