1.问题:在Google浏览器中,input输入框自动填充时,颜色会自动改变。和预期设计有出入,
2.分析:打开控制台查找元素中我们可以看到,自带样式如下
input:-internal-autofill-selected
appearance: menulist-button;
background-color: rgb(232, 240, 254) !important;
background-image: none !important;
color: -internal-light-dark(black, white) !important;