我的输入和textarea字段在聚焦时会出现一种颜色:
这似乎发生在Chrome中,但不是Firefox.
我试图用一些jQuery改变颜色:
if ($('body').is('#contact')) { $('input').focus(function() { $(this).css('border','2px solid #ce1443'); console.log('focus'); }); $('textarea').focus(function() { $('textarea').css('border','2px solid #ce1443'); }); }
@H_404_12@然而,这似乎只会使当前边界更大……但它没有消除蓝色.
最佳答案
使用outline:none CSS属性:http://jsfiddle.net/ZnefN/.