去除input输入框黄色背景
16lz
2022-04-07
input输入框在选择历史输入记录的时候,会默认带有黄色的背景,感觉非常的丑,与自己的主题格格不入,所以我们可以通过下面的代码片段去掉。
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px white inset;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus {
-webkit-box-shadow: 0 0 0 1000px white inset;
}
更多相关文章
- 去掉Android(安卓)app上的Title Bar
- android P虚拟按键点击位置加大的问题
- Android(安卓)O 去掉Launcher3 背景阴影
- Android中隐藏标题栏和状态栏
- android的单元测试
- android实现截屏
- 如何去掉android 控件默认选中时的背景橘黄色
- android 同一个TextView不同文字的点击事件
- Android中隐藏标题栏和状态栏