我们在修改element的一些样式的时候,在加了scoped的时候会不起作用,下面是解决方案:

解决方法:起一个类名将页面包裹起来,后面加 /deep/

 

<style scoped>

1 /* 自定义类名 table-container*/ 2 .table-container /deep/ .el-table { 3 overflow-x: auto; 4 }
</style>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2022-12-23
  • 2021-12-09
  • 2021-12-22
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案