添加横向滚动条
ul {
display: flex;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
}
隐藏滚动条,保留滚动效果
ul::-webkit-scrollbar {
display: none;
}
添加横向滚动条
ul {
display: flex;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
}
隐藏滚动条,保留滚动效果
ul::-webkit-scrollbar {
display: none;
}