//表格不换行
.el-table .cell{
white-space: nowrap;
color: rgba(0,0,0,.65);
}
//表头背景
.el-table th{
background-color: rgb(232 244 255) !important;
height: 55px !important;
color:#333333 ;
}
//表格悬浮
.el-table tbody tr:hover>td{
// background-color: #e8f4fd !important;
}
/* 去掉表格单元格边框 */
.el-table td,el-table th.is-leaf {
border:none !important;
border-bottom: 1px solid #EBEEF5 !important;
}
.el-table-bottom-border{
border-bottom: 1px solid #EBEEF5 !important;
}
/* 表格最外边框 */
.el-table--border, .el-table--group{
border: none !important;
}
/* 头部边框 */
.el-table thead tr th.is-leaf{
border-bottom: 1px solid #EBEEF5 !important;
border-right: none !important;
}
/* 表格最外层边框-底部边框 */
// .el-table--border::after, .el-table--group::after{
// width: 0;
// }
// .el-table::before{
// width: 0;
// }
// .el-table .el-table__fixed-right::before,.el-table__fixed::before{
// width: 0;
// }
/* 表格有滚动时表格头边框 */
//
SC——element表格样式调整
于 2022-04-29 10:12:12 首次发布
本文详细介绍了如何在Vue项目中使用ElementUI框架对表格进行样式调整,包括CSS选择器的使用、自定义组件及深入理解ElementUI的表格属性,帮助开发者实现个性化表格设计。
摘要由CSDN通过智能技术生成