element中修改表单验证的提示信息的样式

  .el-form-item--small .el-form-item__error {
    margin-top: 2px;
  }

  .el-form-item__error {
    position: absolute !important;
    top:16px;
    text-align: center;
    background-color: red;
    filter: alpha(Opacity=40);
    opacity: 0.4;
     120px;
    height: 21px;
    border-radius: 2px;
    font-size: 12px;
    color: #fff;
    line-height: 21px;
    z-index: 99;
  }
原文地址:https://www.cnblogs.com/huanhuan55/p/12297858.html