其他分享
首页 > 其他分享> > elementUI 组件兼容移动端(媒体查询)

elementUI 组件兼容移动端(媒体查询)

作者:互联网

@media screen and (max-width: 500px) {
  .el-message {
    min-width: 300px !important;
  }
}

@media screen and (max-width: 500px) {
  .el-message-box {
    width: 300px !important;
  }
}

@media screen and (max-width: 500px) {
  .el-dialog__wrapper .el-dialog {
    width: 300px !important;
    .el-dialog__body {
      padding: 10px 20px !important;
      .el-form-item__label {
        width: 68px !important;
      }
      .el-select,
      .el-input {
        width: 180px !important;
      }
    }
  }
}

以此类推

标签:__,el,elementUI,500px,media,兼容,width,important,组件
来源: https://blog.csdn.net/LiangBlog/article/details/114527479