Change Bootstrap input focus blue glow

后端 未结 19 2025
抹茶落季
抹茶落季 2020-11-30 16:53

Does anyone know the how to change Bootstrap\'s input:focus? The blue glow that shows up when you click on an input field?

相关标签:
19条回答
  • 2020-11-30 17:36

    You can use the .form-control selector to match all inputs. For example to change to red:

    .form-control:focus {
      border-color: #FF0000;
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.6);
    }
    

    Put it in your custom css file and load it after bootstrap.css. It will apply to all inputs including textarea, select etc...

    0 讨论(0)
提交回复
热议问题