当前位置:网站首页>button去除黑框
button去除黑框
2022-08-01 02:46:00 【滕青山YYDS】
如果想要去除button的黑框,可以使用如下两个属性:
border: none;
outline: none;
但当我点击button的时候会发现黑框又出现了,这时候我们可以利用开发者工具进行调试,如图:

可以看到由于项目引入了bootstrap,当button获取到焦点时又会出现黑框:

所以解决方法就是覆盖这一属性,如下代码:
.button:focus {
outline: none;
}
边栏推荐
- 设备树——dtb格式到struct device node结构体的转换
- Nmap 操作手册 - 完整版
- 【搜索专题】看完必会的BFS解决最短路问题攻略
- Lua introductory case of actual combat 1234 custom function and the standard library function
- MySQL modifies SQL statements to optimize performance
- High dimensional Gaussian distribution basics
- C string array reverse
- RTL8762DK UART (two)
- 修改Postman安装路径
- 每周小结(*67):为什么不敢发表观点
猜你喜欢

Flink deploys and submits jobs

【历史上的今天】7 月 31 日:“缸中之脑”的提出者诞生;Wi-Fi 之父出生;USB 3.1 标准发布

IDEA 找不到或无法加载主类 或 Module “*“ must not contain source root “*“ The root already belongs to module “*“

Summary of MVCC
![[uniCloud] Application and Improvement of Cloud Objects](/img/e0/4b899e17f683043d66a8fa426e88a4.jpg)
[uniCloud] Application and Improvement of Cloud Objects

每周小结(*67):为什么不敢发表观点

情人节浪漫3D照片墙【附源码】

初出茅庐的小李第113篇博客项目笔记之机智云智能浇花器实战(2)-基础Demo实现

这个地图绘制工具太赞了,推荐~~

北京突然宣布,元宇宙重大消息
随机推荐
One service layer needs to call the other two service layers to obtain data and assemble it into the final data. The data is all lists. How to design the cache?
Parse the bootargs from the device tree (dtb format data)
MySQL修改SQL语句优化性能
解决安装MySQL后,Excel打开很慢的问题
Inheritance Considerations
初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
[SemiDrive source code analysis] series article link summary (full)
IDEA修改注释字体
When opening a MYSQL table, some can display editing, some do not, how to set.
How to download the Keil package
MYSQL Classic Interview Questions
内核的解压缩过程详解
gateway gateway cross domain
Four ways the Metaverse is changing the way humans work
修改Postman安装路径
Unity3D study notes 10 - texture array
Modern Enterprise Architecture Framework 1
北京突然宣布,元宇宙重大消息
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
Compiled on unbutu with wiringPi library and run on Raspberry Pi