如何删除输入周围的橙色边框

时间:2018-08-02 17:19:29

标签: css firefox focus border

仅在Chrome中有效:

:focus {
  outline: 0;
}

screenshot

2 个答案:

答案 0 :(得分:0)

尝试以下方法之一:

*:focus {
    outline: none;
}

input:focus{
outline: none;
}

答案 1 :(得分:0)

input:required {
    box-shadow: none;
}

input:invalid {
    box-shadow: none;

}
<input type='email'  placeholder='email' required  />