css修改样式时候报错如下
Module build failed : SassError: expected selector.
原因是:某些预处理器(例如Sass)可能无法正确解析。
解决办法是:使用::v-deep代替/deep/
例如把elementui表格改透明
//透明化整体
.table-wrapper ::v-deep .el-table,
.el-table__expanded-cell {
background-color: transparent !important;
}
//透明化行、单元格,删除表头下横线
.table-wrapper ::v-deep tr,
.table-wrapper ::v-deep th,
.table-wrapper ::v-deep td {
background: #1439391c !important;
color: #fff;
border-bottom: 0px; //删除表头下横线
}
//hover时样式
.table-wrapper ::v-deep .el-table tbody tr:hover>td {
background-color: #367f7f78 !important
}
// 表格内容(有用)
.table-wrapper ::v-deep .el-table__row {
background: #1439391c !important;
color: #46d4ff;
}
/**表格背景透明end */