el-table最全修改滚动条及背景文字颜色,不高亮

el-table最全修改滚动条及背景文字颜色,不高亮

<style scoped>
::v-deep .el-table,::v-deep .el-table__expanded-cell {
  background-color: #1A2769 !important;
  color: #c5cef7;
}
::v-deep .el-table thead{
  color: #c5cef7;
}
::v-deep .el-table th,::v-deep .el-table tr {
  background-color: #1A2769 !important;
}
::v-deep .el-table td,::v-deep  .el-table th.is-leaf {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
::v-deep .el-table--border::after,::v-deep  .el-table--group::after,::v-deep  .el-table::before {
  background: rgba(255, 255, 255, 0);
}
::v-deep .el-table tbody tr:hover td {
  background-color: #1A2769 !important;
}
/* 单元格单独背景颜色 */
::v-deep .el-table tbody tr td.className {
  background-color: #1A2769 !important;
}
/* 单元格单独背景颜色不高亮 */
::v-deep .el-table tbody tr:hover td.className {
  background-color: #1A2769 !important;
}
/*滚动条凹槽的颜色,还可以设置边框属性 */
::-webkit-scrollbar-track-piece {
	background-color:#04192b;
	-webkit-border-radius: 2em;
	-moz-border-radius: 2em;
	border-radius: 2em;
}
/*滚动条的宽度*/
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
/*滚动条的设置*/
::-webkit-scrollbar-thumb {
	background-color:#174d79;
	background-clip:padding-box;
	-webkit-border-radius: 2em;
	-moz-border-radius: 2em;
	border-radius: 2em;
}
/*滚动条鼠标移上去*/
::-webkit-scrollbar-thumb:hover {
	background-color:#174d79;
}
/*横竖滚动条都有的时候,右下角有一块白色的*/
*::-webkit-scrollbar-corner{background: #04192b;}

/* 横向滚动条不显示 */
.el-table--scrollable-x .el-table__body-wrapper {
  overflow-x: hidden;
}
</style>
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值