SC——element表格样式调整

本文详细介绍了如何在Vue项目中使用ElementUI框架对表格进行样式调整,包括CSS选择器的使用、自定义组件及深入理解ElementUI的表格属性,帮助开发者实现个性化表格设计。
摘要由CSDN通过智能技术生成
//表格不换行
.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;
		// }
		/* 表格有滚动时表格头边框 */
		// 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值