当前位置:网站首页>button去除黑框
button去除黑框
2022-08-01 02:46:00 【滕青山YYDS】
如果想要去除button的黑框,可以使用如下两个属性:
border: none;
outline: none;
但当我点击button的时候会发现黑框又出现了,这时候我们可以利用开发者工具进行调试,如图:
可以看到由于项目引入了bootstrap,当button获取到焦点时又会出现黑框:
所以解决方法就是覆盖这一属性,如下代码:
.button:focus {
outline: none;
}
边栏推荐
- Handwritten binary search tree and test
- Chain programming, packages, access
- Inheritance Considerations
- Lua introductory case of actual combat 1234 custom function and the standard library function
- New York University et al | TM-Vec: Template Modeling Vectors for Rapid Homology Detection and Alignment
- 北京突然宣布,元宇宙重大消息
- HCIP(14)
- Flink 部署和提交job
- 高维高斯分布基础
- Introduction to the decision logic of WAASAP WebClient UI page labels
猜你喜欢
ARM cross compilation
Solve the problem that Excel opens very slowly after installing MySQL
Unity3D study notes 10 - texture array
每周小结(*67):为什么不敢发表观点
初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
Completely closed Chrome updated and in the top right corner of the tip
MYSQL Keyword Explain Analysis
数据中台建设(七):数据资产管理
Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
ARM 交叉编译
随机推荐
MySQL修改SQL语句优化性能
初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
TCP协议详解
MYSQL-Batch insert data
sqlserver cannot connect remotely
Parse the bootargs from the device tree (dtb format data)
一个service层需要调用另两个service层获取数据,并组装成最后的数据,数据都是list,缓存如何设计?
STK8321 I2C (Shengjia-accelerometer) example
Lua introductory case of actual combat 1234 custom function and the standard library function
测试
MYSQL logical architecture
元宇宙改变人类工作模式的四种方式
内核的解压缩过程详解
IDEA modifies the annotation font
leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
RTL8762DK Lighting/LED (3)
pdb drug comprehensive database
By Value or By Reference
被 CSDN,伤透了心