input输入框在选择历史输入记录的时候,会默认带有黄色的背景,感觉非常的丑,与自己的主题格格不入,所以我们可以通过下面的代码片段去掉。

  1. input:-webkit-autofill,
  2. textarea:-webkit-autofill,
  3. select:-webkit-autofill {
  4. -webkit-box-shadow: 0 0 0 1000px white inset;
  5. }
  6. input[type=text]:focus, input[type=password]:focus, textarea:focus {
  7. -webkit-box-shadow: 0 0 0 1000px white inset;
  8. }

更多相关文章

  1. 去掉Android(安卓)app上的Title Bar
  2. android P虚拟按键点击位置加大的问题
  3. Android(安卓)O 去掉Launcher3 背景阴影
  4. Android中隐藏标题栏和状态栏
  5. android的单元测试
  6. android实现截屏
  7. 如何去掉android 控件默认选中时的背景橘黄色
  8. android 同一个TextView不同文字的点击事件
  9. Android中隐藏标题栏和状态栏

随机推荐

  1. c++是一种高级程序设计语言吗?
  2. c语言中strstr函数的用法是什么?
  3. c语言六种基本语句是什么
  4. c语言strcmp函数用法是什么?
  5. 学习c语言用什么软件
  6. c语言用什么函数来比较字符串大小?
  7. system()函数是什么
  8. c语言六种基本语句是哪些?
  9. c语言函数由哪两部分组成
  10. c语言在gcc中怎么运行程序?