一、去除button点击按压的蓝色边框
1 .btn:focus, 2 .btn:active:focus, 3 .btn.active:focus, 4 .btn.focus, 5 .btn:active.focus, 6 .btn.active.focus { 7 outline: none; 8 Box-shadow: none; /*去除阴影*/ 9 }
二、去除Select组件选中的蓝色边框
1 /*-----去除下拉选择框的outline-------*/ 2 .bootstrap-select .dropdown-toggle:focus { 3 outline: none !important; 4 } 5 6 /*-----下拉选择框去除选项的outline---*/ 7 a:focus { 8 outline: none !important; 9 }
三、去除input输入框的蓝色边框
1 /*-----去除蓝色边框,重写样式---------*/ 2 .form-control:focus { 3 outline: none; 4 border-color: #ccc; 5 -webkit-Box-shadow: none; 6 Box-shadow: none; 7 }