深圳汇网网站建设创新型的网站建设
深圳汇网网站建设,创新型的网站建设,怎么做网站鹅蛋生蚝,山东省建设工会网站// Element-ui table表格去掉所有边框,如下#xff1a;
// 备注#xff1a;若去掉所有边框#xff0c;可自行将头部边框注释掉即可
// 该样式写在style scoped外面在el-table 中添加classcustomer-table类名
//去掉每行的下边框/deep/ .el-table td.el-table__c…// Element-ui table表格去掉所有边框,如下
// 备注若去掉所有边框可自行将头部边框注释掉即可
// 该样式写在style scoped外面在el-table 中添加classcustomer-table类名
//去掉每行的下边框/deep/ .el-table td.el-table__cell,/deep/ .el-table th.el-table__cell.is-leaf {border-bottom: none;} // 去掉表格单元格边框
.customer-table th{border:none;}
.customer-table td,.customer-table th.is-leaf {border:none;
}
// 表格最外边框
.el-table--border, .el-table--group{border: none;
}
// 头部边框
.customer-table thead tr th.is-leaf{border: 1px solid #EBEEF5;border-right: none;
}
.customer-table thead tr th:nth-last-of-type(2){border-right: 1px solid #EBEEF5;
}
// 表格最外层边框-底部边框
.el-table--border::after, .el-table--group::after{width: 0;
}
.customer-table::before{width: 0;
}
.customer-table .el-table__fixed-right::before,.el-table__fixed::before{width: 0;
}
// 表格有滚动时表格头边框
.el-table--border th.gutter:last-of-type {border: 1px solid #EBEEF5; border-left: none;
}
// 去除边框线
/deep/ .el-table::before {height: 0;
}
修改滚动条的样式例如设置表格滚动条的颜色、宽度、 背景颜色等 /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {background-color: #2751be;border-radius: 6px;}/deep/ .el-table__body-wrapper::-webkit-scrollbar {width: 8px; // 横向滚动条height: 25px; // 纵向滚动条 必写background: #12244d;}/deep/ .el-table__body-wrapper::-webkit-scrollbar-track {border-radius: 10px; /*滚动条的背景区域的圆角*/background-color: rgb(18, 36, 77); /*滚动条的背景颜色*/}
隔行变色:
//el-table组件添加属性 :stripetrue// 隔行变色(less)/deep/ .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {background-color: rgba(48, 112, 249, 0.05) !important;}
去除鼠标悬停变色效果
//去除鼠标触摸变色效果/deep/ .el-table tbody tr:hover td{background-color: transparent;}
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/bicheng/90201.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!