css - 引导按钮轮廓
问题描述
我的按钮有问题。
我想修复点击时的灰色效果,但我不知道该怎么做。
<div class="col-lg-7 col-sm-5 col-md-11">
<form class="navbar-form">
<div class="input-group">
<input type="text" class="form-control" placeholder="Look for something cool">
<div class="input-group-append">
<button class="btn btn-outline-secondary"><i class="fas fa-search"></i></button>
</div>
解决方案
将此添加到您的CSS
button:focus {
box-shadow: none !important;
outline: none !important;
}
PS:不建议删除它,因为它旨在使残障人士或不使用触摸/鼠标作为控制的人更容易获得用户体验(例如,如果您尝试使用导航到该按钮TAB 按钮会很硬)
推荐阅读
- azure - Azure DevOps PR Build Validation 仅检查其中一项策略
- r - R中多列标志的阈值
- java - 代表崩溃游戏的指数分布
- python - 在 HBox 容器中将两个 ipywidgets textAreas 扩展到最大
- angular - 自定义元素(聚合物)属性绑定到 Angular 9 中的 RxJS Observable
- c - 是否可以仅在缓冲区末尾存储 n-1 个字符?
- c# - 我可以强制 Json.NET 从根目录开始树反序列化吗
- excel - VBA 编码变量属性的类型不正确
- css - 如何将 css 文件添加到 R Shiny 以改进我的应用程序?
- python - 当输入是字母而不是数字时,Python 说 (ValueError: invalid literal for int() with base 10: '')