解决方案是:将浏览器自带的样式填充,或者覆盖(css);
综合之前网上的各种方法,得出以下结果:以应对不同的情况吗,请全盘复制;
&:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
-webkit-text-fill-color: #62dfc2 !important;//自动填入文字的颜色
box-shadow: 0 0 0px 1000px transparent inset !important;
background-color: transparent !important;
background-image: none !important;
transition: background-color 50000s ease-in-out 0s !important; //背景色透明 生效时长 过渡效果 启用时延迟的时间
}
本文提供了一种清除浏览器默认样式的解决方案,通过使用特定的CSS代码来覆盖或填充浏览器自带的样式,确保网页元素如输入框、文本域等能统一外观表现。
843

被折叠的 条评论
为什么被折叠?



