forked from liweijie/education
样式调整
This commit is contained in:
@@ -95,26 +95,6 @@ a,
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* ===== 全局表格内容居中:所有页面表头与数据单元格统一居中对齐 =====
|
||||
覆盖 Element 表头(.el-table__cell th)与数据(.el-table__cell td)的默认左对齐,
|
||||
含固定列(eltable__fixed);!important 用于覆盖列配置 align 时 Element 注入的
|
||||
内联 text-align(如 align="left/right"),确保按需求强制全部居中。
|
||||
选中列复选框(el-checkbox)不受影响。 */
|
||||
.el-table th.el-table__cell > .cell,
|
||||
.el-table td.el-table__cell > .cell {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
/* ===== 全局隐藏表格底部横向滚动条 =====
|
||||
页面已实现横向拖拽滑动(el-table__body-wrapper.is-dragging),故隐藏
|
||||
Element 的横向滚动条(.el-scrollbar__bar.is-horizontal),避免视觉重复。
|
||||
!important:Element 的 ScrollbarBar 会通过内联 style="display:block"
|
||||
控制该横条显隐,普通 display:none 无法覆盖内联样式,必须加 !important。
|
||||
纵向滚动条(el-scrollbar__bar.is-vertical)不受影响。 */
|
||||
.el-table .el-scrollbar__bar.is-horizontal {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
|
||||
Reference in New Issue
Block a user