直接看代码 (用的是scss)
<style lang="scss" scoped>
$bg: #fff;
$light_gray: #727272;
$cursor: #000;
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
input {
color: $cursor;
}
}
input{
&:-webkit-autofill {
box-shadow: 0 0 0px 1000px $bg inset !important;
// -webkit-text-fill-color: $cursor !important;
}
}
</style>