解决chrome input 黄色背景色的问题
2013-05-31 18:13
295 查看
不需要关闭autocomplete的情况下通过js完美解决.
<script>
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
$(window).load(function(){
$('input:-webkit-autofill').each(function(){
var text = $(this).val();
var name = $(this).attr('name');
$(this).after(this.outerHTML).remove();
$('input[name=' + name + ']').val(text);
});
});
}
</script>
<script>
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
$(window).load(function(){
$('input:-webkit-autofill').each(function(){
var text = $(this).val();
var name = $(this).attr('name');
$(this).after(this.outerHTML).remove();
$('input[name=' + name + ']').val(text);
});
});
}
</script>
相关文章推荐
- chrome表单自动填充导致input文本框背景变成偏黄色问题解决
- 解决谷歌浏览器和360浏览器 input 自动填充淡黄色背景色的问题
- chrome表单自动填充导致input文本框背景变成偏黄色问题解决
- chrome表单自动填充导致input文本框背景变成偏黄色问题解决
- 解决在chrome中input出现黄色背景的问题
- 解决谷歌浏览器中的input背景色默认是黄色
- 解决Chrome表单文本框自动填充黄色背景色的黑科技
- 解决chrome浏览器对于自动填充的input表单添加的默认的淡黄色背景问题 && 一般的浏览器input和button的高度不一致问题
- (前端开发)input标签在chrome下自动填充变成黄色背景的解决方法
- chrome自动填表会遮挡input中背景图的问题解决方法
- chrome自动填表会遮挡input中背景图的问题解决方法
- 解决chrome中输入框会呈现黄色的问题
- 如何解决谷歌浏览器保存密码后文本框出现淡黄色背景色的显示问题
- 解决谷歌浏览器中的input背景色默认是黄色
- 解决谷歌浏览器中的input背景色默认是黄色
- chrome输入框input黄色背景去除 及 autocomplete失效解决方法
- 解决Chrome下表单自动填充后背景色为黄色
- chrome下input[type=text]的placeholder不垂直居中的问题解决
- js解决chrome自动填写表单后input出现黄色背景的解决方案
- chrome下input[type=text]的placeholder不垂直居中的问题解决 调试通过