&:那个元素有滚动条,就是那个元素
scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE 10+ */ &::-webkit-scrollbar { display: none; /* Chrome Safari */ }
传送门:https://blog.csdn.net/Umbrella_Um/article/details/114144718