解决element-plus的input框 谷歌自动填充密码时候的样式错乱问题

57 阅读1分钟
:deep(.el-input__inner) {
  -webkit-text-fill-color: #eee; //文字颜色
  caret-color: #eee; //光标颜色
  box-shadow: inset 0 0 0 1000px #091c3d !important; //背景颜色
}
:deep(input::-webkit-input-placeholder) {
  -webkit-text-fill-color: #5f757f !important; //placeholder的文字颜色
}

/* 清除input在浏览器下的背景色 */
:deep(.el-input__inner) {
  transition:background-color 5000s ease-in-out 0s;
}