当单元格中的内容过多或者带回车的时候,Element中的样式设置如下:
.el-table__row td {
vertical-align: top;//不垂直居中
max-height: 500px;
overflow: auto;
}
.cell {
white-space: pre-line !important; //换行内容
max-height: 500px !important;//
overflow: auto !important;//滚动条
}
Element表格内容不垂直居中和内容换行显示
最新推荐文章于 2024-01-04 15:37:01 发布