How does el-scrollbar hide the horizontal scroll bar

Baidu overuses. El-scrollbar__wrap {overflow-x: hidden;}, but my code doesn"t work with this. The project is vue+element

.
Apr.05,2021

. El-scrollbar__wrap {overflow-x: hidden;} is useful, don't write it in < style scoped > < / style >, write the css import file yourself.


you try

  

< style scoped > < / style > where scoped represents the current file rendering css, and the scroll bar may be loaded dynamically later, so it doesn't work.
solution: 1. You can also introduce a globally effective css file as described on the second floor;
2. Remove the scoped attribute of the current file

Menu