vue3修改el |
您所在的位置:网站首页 › web前端怎么创建表格 › vue3修改el |
学习目标:
后台管理系统中会大量用到表格,我这里用的技术栈是vue3+elementui-plus 例如:要修改表格样式 学习内容:我这里是全局修改表格样式,一套管理系统中表格风格样式是一样的 首先在style文件夹中创建scss文件 .el-table tr { border: none !important; } .el-table { background-color: #071134; 表格背景色 // color: #fff; border: none !important; } .el-table { –el-table-border-color:none; } .el-table th { background-color: #101d3f !important; 表头背景色 } .el-table__body tr:hover > td { background: #afddf0 !important; 单元格样式 } .el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf { border: none !important; 去掉表格底部线条 } .el-table__body-wrapper tr td.el-table-fixed-column–right { background-color: transparent !important; 固定列样式 } 如果要设置各行换色即:![]() ![]() 以上就是el-table中elementui-plus表格样式修改代码。 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |