使用前:
使用后:
.element::-webkit-scrollbar {
display: none; /* Chrome, Safari and Opera */
}
.element{
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
overflow: auto; /* 确保元素在内容过多时可以滚动 */
}