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

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

所以解决方法就是覆盖这一属性,如下代码:
.button:focus {
outline: none;
}
边栏推荐
- 如何下载Keil包
- MYSQL transactions
- Handwritten binary search tree and test
- 被 CSDN,伤透了心
- 一个service层需要调用另两个service层获取数据,并组装成最后的数据,数据都是list,缓存如何设计?
- [uniCloud] Application and Improvement of Cloud Objects
- ROS2 series of knowledge (4): understand the concept of [service]
- WebApi 打个Attribute 统一处理异常
- Basic implementation of vector
- 链式编程、包、访问权限
猜你喜欢

HCIP(15)

Compiled on unbutu with wiringPi library and run on Raspberry Pi

HIRO: Hierarchical Reinforcement Learning 】 【 Data - Efficient Hierarchical Reinforcement Learning

Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)

MYSQL Classic Interview Questions
![ROS2 series of knowledge (4): understand the concept of [service]](/img/14/8de92a89d9c4b6476ac37408bc7788.png)
ROS2 series of knowledge (4): understand the concept of [service]

HCIP (14)

Summary of MVCC

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

Which interpolation is better for opencv to zoom in and out??
随机推荐
RTL8762DK UART (two)
LeetCode每日一练 —— 环形链表问题(面试四连问)
机器学习应该如何入门?
树莓派 的 arm 版的 gcc 安装 和环境变量的配置
leetcode:1648. 销售价值减少的颜色球【二分找边界】
Detailed explanation of TCP protocol
Simple vim configuration
Nmap manuals - the full version
New York University et al | TM-Vec: Template Modeling Vectors for Rapid Homology Detection and Alignment
Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
TCP协议详解
HCIP (14)
You need to know the TCP wave four times
MySQL modifies SQL statements to optimize performance
The fledgling Xiao Li's 114th blog project notes: Wisdom cloud intelligent flower watering device combat (3) - basic Demo implementation
This map drawing tool is amazing, I recommend it~~
带wiringPi库在unbutu 编译 并且在树莓派运行
how to edit the table of contents of an epub ebook
lua entry case combat 123DIY
The fledgling Xiao Li's 112th blog project notes: Wisdom cloud intelligent flower watering device actual combat (1) - basic Demo implementation