elementUI 样式小总结
样式代码小总结
1.弹窗居中显示,内容过高自行滚动。
.dialog /deep/.el-dialog { display: flex; flex-direction: column; margin: 0 !important; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-height: calc(100% - 200px); max-width: calc(100% - 100px); .el-dialog__body { flex: 1; overflow: auto; } } 复制代码
未完待续...
作者:HuYi_code
链接:https://juejin.cn/post/7024443865960546334