我是靠谱客的博主 害羞蜗牛,这篇文章主要介绍表单选择后变黄色背景如何去掉,现在分享给大家,希望可以做个参考。

1.

解决方法:给input:-webkit-autofill设置足够大的纯色内阴影来覆盖input输入框的黄色背景,如:

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    border: 1px solid #CCC!important;
}

2. 解决方法 2

input:-webkit-autofill,
	input:-webkit-autofill:hover,
	input:-webkit-autofill:focus,
	input:-webkit-autofill:active {
	-webkit-transition-delay: 9999s;
	-webkit-transition: color 9999s ease-out, background-color 9999s ease-out;
}

 

最后

以上就是害羞蜗牛最近收集整理的关于表单选择后变黄色背景如何去掉的全部内容,更多相关表单选择后变黄色背景如何去掉内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部