css编写input获取焦点失去焦点时,不显示边框 // 获取焦点 input:focus { border: none; } // 失去焦点 input:valid { border: none; } 相关文章: