当前位置:网站首页>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; }
边栏推荐
- Centos7安装jdk8以及mysql5.7以及Navicat连接虚拟机mysql的出错以及解决方法(附mysql下载出错解决办法)
- String to Base64
- Tencent cloud ASR product PHP realizes real-time voice authentication request
- Xiaohei ai4code code baseline nibble 1
- Building a static website with eleventy
- 5 minutes, excellent customer service chat handling skills
- (pkcs1) RSA public private key PEM file parsing
- 表单图片上传在Chorme中无法查看请求体的二进制图片信息
- js中通过key查找和更新对象中指定值的方法
- Tencent conference API - get rest API & webhook application docking information
猜你喜欢

JUC personal simple notes

一文详解|增长那些事儿

js中通过key查找和更新对象中指定值的方法

一文讲透,商业智能BI未来发展趋势如何

ZUCC_ Principles of compiling language and compilation_ Experiment 01 language analysis and introduction

It is enough to read this article about ETL. Three minutes will let you understand what ETL is

什么是SRE?一文详解SRE运维体系

How to improve the customer retention rate in the operation of independent stations? Customer segmentation is very important!

Markdown to realize text link jump

Xiaohei ai4code code baseline nibble 1
随机推荐
Battle history between redis and me under billion level traffic
图片工具
【力扣10天SQL入门】Day2
QT source code analysis -- QObject (2)
相机投影矩阵计算
Xtrabackup for data backup
中国芯片独角兽公司
How to improve the customer retention rate in the operation of independent stations? Customer segmentation is very important!
After interviewing and tutoring several children, I found some problems!
Win10 cloud, add Vietnamese
Base64编码详解及其变种(解决加号在URL变空格问题)
PHP code encryption + extended decryption practice
Markdown to realize text link jump
How to configure networkpolicy for nodeport in kubernetes
[life thinking] planning and self-discipline
String to Base64
Numpy 中的方法汇总
Introduction to NC machine tool programming [G-code]
Picture tools
Glusterfs replacement failure brick