el-table表格样式修改

el-table基本用法

<div class="user_skills">
	 <el-table class="tableIner" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
			<el-table-column v-for="(item,i) in workList" :label="item.name">
				<template slot-scope="scope">{{ scope.row[item.engName] }}</template>
			</el-table-column>
			<el-table-column label="操作" width="200">
				<template slot-scope="scope">
						<el-button type="text" size="small">编辑合同</el-button>
						<el-button type="text" size="small">合同下载</el-button>
				</template>
			</el-table-column>	    			
	</el-table>
</div>

效果
在这里插入图片描述
希望达到的效果
在这里插入图片描述

样式修改

	::v-deep .user_skills{
		.el-table::before {	//去除底部白线
			height: 0px;
		}
		
		.el-table {
			
			background-color: transparent; //背景色设为透明
			border-radius: 10px;//圆角边框
			th.el-table__cell.is-leaf {//设置表头底部边框为绿色
				    border-bottom: 1px solid Rgb(128,255,255,60%);
				}
			th { //表头背景为蓝色渐变色,文字颜色为白色,不加粗
			    padding-top: 9px;//设置行高(通过padding控制)
			    padding-bottom:6px;
				background: linear-gradient(180deg,rgba(1,84,120,1.00), #040b37 100%);
				color: #ffffff;
				font-weight: normal;
			}
			tr{//每一行背景色设为透明
			   
				background-color: transparent;
				&:hover {//鼠标悬浮变色
				  td {
				    background-color:#1B4584 !important;
				    
				  }
				}
				td {//每一行的每一列文字为白色,底部边框为绿色,
				     padding-top: 6px;//设置行高(通过padding控制)
					 padding-bottom:6px;
					color: #fff;
					border-bottom: 1px solid Rgb(128,255,255,60%);
					
				}
				td:first-child{//第一列的文字颜色为绿色
				    
					color: #80ffff;
					
				}
			}
			th.el-table__cell:first-child.cell {//第一个表头缩进30px
			    padding-left: 30px;
			}
			.el-table__cell:first-child .cell {//第一列数据缩进30px
				padding-left: 30px;
			}
			.el-button--text{//按钮颜色为绿色
				color:#80ffff;
			}
			
		}
		
	}

效果
在这里插入图片描述

  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zttbee

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值