当前位置:网站首页>The border problem after the focus of input

The border problem after the focus of input

2022-06-24 09:08:00 Secret Shura

We wrote input After focusing , Its focus frame is composed of outline Controlled , but input You can also control the border

 //  Enter text search 
  .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); 	
  }

The first is element Of <el-input . >
 Insert picture description here
The second is input The style of , Only the input Of :focus {outline:0px} outline Set to zero , Reuse border:1px solid rgb(0, 195, 255); This is and element It's the same

reason :input Of focus The focus frame is composed of outline Controlled
 Insert picture description here

 Insert picture description here
So we need to add settings : focus{ outline:0px solid #fff; }

原网站

版权声明
本文为[Secret Shura]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240625104518.html