Bootstrap 3 移除输入框聚焦线 How to remove border (outline) around text/input boxes?

一般可以用:

textarea:focus, input:focus{
    outline: 0;
}

或者

*:focus {
    outline: 0;
}

来源:http://stackoverflow.com/a/3397158

 

针对bootstrap可以用一下css来覆盖:

.form-control:focus {
  border-color: inherit;
  -webkit-box-shadow: none;
  box-shadow: none;
}

来源:http://stackoverflow.com/a/21924857

 

本文:Bootstrap 3 移除输入框聚焦线 How to remove border (outline) around text/input boxes?

Leave a Reply