当前位置:网站首页>input的聚焦后的边框问题
input的聚焦后的边框问题
2022-06-24 07:06:00 【隐密修罗】
我们写的input 聚焦后,它的聚焦边框是由outline控制了,但input还可以控制边框
// 输入文字搜索
.my_InputText{
border:0.5px solid #DCDFE6;
border-radius: 5px;
}
.my_InputText:focus {
box-sizing: border-box;
outline:0px ;
border:1px solid rgb(0, 195, 255);
}
第一个是element的 <el-input . >
第二个是input的样式 ,只有把input的 :focus {outline:0px} outline设成零,再用border:1px solid rgb(0, 195, 255); 这样就是和element的一样了
原因:input的focus 聚焦边框是由outline控制了

所以我们需要进行增加设置 : focus{ outline:0px solid #fff; }
边栏推荐
- 【力扣10天SQL入门】Day3
- How to improve the customer retention rate in the operation of independent stations? Customer segmentation is very important!
- 2022春招面试总结
- win11在cmder中使用vim查看内容的时候空白
- [force deduction 10 days SQL introduction] Day3
- Shell pass parameters
- Several schemes of PHP code encryption
- Shell array
- Increase insert speed
- 数据平台简介
猜你喜欢

分布式 | 如何与 DBLE 进行“秘密通话”

中国芯片独角兽公司

Distributed | how to make "secret calls" with dble

pymysql 向MySQL 插入数据无故报错
![[micro services ~nacos] Nacos service providers and service consumers](/img/b7/47ecd6979ccfeb270261681d6130be.png)
[micro services ~nacos] Nacos service providers and service consumers

MATLAB Camera Calibrator相机标定

ZUCC_ Principles of compiling language and compilation_ Experiment 04 language and grammar

MySQL 因字符集问题插入中文数据时提示代码 :1366

Redis cluster data skew

关于ETL看这篇文章就够了,三分钟让你明白什么是ETL
随机推荐
JS merge multiple objects and remove duplicates
Three categories of financial assets under the new standards: AMC, fvoci and FVTPL
Numpy 中的方法汇总
Pyqt common system events
Several schemes of PHP code encryption
[micro services ~nacos] Nacos service providers and service consumers
AUTO PWN
Why do you want to file? What are the advantages and disadvantages of website filing?
Win11 blank when using VIM to view content in cmder
2021-06-24: find the length of the longest non repeating character substring in a string.
關於ETL看這篇文章就够了,三分鐘讓你明白什麼是ETL
Micro build low code online "quick registration applet" capability
lombok 使用
表单图片上传在Chorme中无法查看请求体的二进制图片信息
深度学习与神经网络:最值得关注的6大趋势
Shell array
Common misconceptions in Tencent conference API - signature error_ code 200003
JS to get the last element of the array
Lombok use
How to improve the customer retention rate in the operation of independent stations? Customer segmentation is very important!