element-plus去除边框

去除el-input 边框样式

//第一种解决方法
.el-input {
    
    
  :deep(.el-input__wrapper) {
    
    
    border: none !important;
    box-shadow: none !important;
  }
  :deep(.el-input__inner) {
    
    
    //border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid black;
  }
}

//第二种解决方法,也可去除时间边框,推荐
:deep(.el-input__wrapper) {
    
    
  box-shadow: none !important;
  // border-bottom: 1px solid black;
  border-radius: 0;
}

去除文本域边框

:deep(.el-textarea__inner) {
    
    
  box-shadow: none !important;
}

猜你喜欢

转载自blog.csdn.net/weixin_62733705/article/details/143488398