input { height:50px; background: rgba(94,206,255,0.4); font-size: 16px; border: 1px solid rgba(0,255,255,0.4); outline: none; //去除自动填充的白色背景 &:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: #fff !important; -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; background-color:transparent; background-image: none; transition: background-color 50000s ease-in-out 0s; //背景色透明 生效时长 过渡效果 启用时延迟的时间 } }
去除登录时输入框因自动填充产生的白色背景
猜你喜欢
转载自blog.csdn.net/workhard0905/article/details/121423925
今日推荐
周排行