当前位置:网站首页>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; }
边栏推荐
- Background management of uniapp hot update
- 一文讲透,商业智能BI未来发展趋势如何
- Introduction to data platform
- [life thinking] planning and self-discipline
- 利用ngrok做内网穿透
- 成为IEEE学生会员
- 2021-06-25: a batch of strings consisting only of lowercase letters (a~z) are put
- Base64编码详解及其变种(解决加号在URL变空格问题)
- 【关于运维和网工的差别,一文说透】
- 小黑ai4code代码baseline啃食1
猜你喜欢

ZUCC_编译语言原理与编译_实验05 正则表达式、有限自动机、词法分析

liunx服务器 telnet 带用户名 端口登陆方法

小黑ai4code代码baseline啃食1

日本大阪大学万伟伟研究员介绍基于WRS系统机器人的快速集成方法和应用

JUC personal simple notes

关于ETL看这篇文章就够了,三分钟让你明白什么是ETL

ZUCC_编译语言原理与编译_实验06 07 语法分析 LL 分析

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

ZUCC_ Principles of compiling language and compilation_ Experiment 02 fsharp Ocaml language

Maya re deployment
随机推荐
Qt源码分析--QObject(2)
[untitled]
深度学习与神经网络:最值得关注的6大趋势
项目部署相关
成为IEEE学生会员
Shell basic operator -- arithmetic operator
MATLAB Camera Calibrator相机标定
图片工具
小黑ai4code代码baseline啃食1
AUTO PWN
2022春招面试总结
2021-06-24: find the length of the longest non repeating character substring in a string.
Send custom events in QT
解析互联网广告术语 CPM、CPC、CPA、CPS、CPL、CPR 是什么意思
Xtrabackup for data backup
Introduction to NC machine tool programming [G-code]
Centos7安装jdk8以及mysql5.7以及Navicat连接虚拟机mysql的出错以及解决方法(附mysql下载出错解决办法)
ZUCC_编译语言原理与编译_实验03 编译器入门
Easydss anonymous live channel data volume instability optimization scheme sharing
Easycvr invokes the interface parameter acquisition method and precautions of device video recording on the page