.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; }