JS -- 改变 input 表单内容自动改变边框颜色 $('.username').bind('input propertychange', function() { $('.username').css('border', 'none'); });