Open xinconan opened 6 years ago
对于Chrome、Safari和Opera,可以使用如下CSS:
.container::-webkit-scrollbar { display: none; }
IE或 Edge 可以使用:
.container { -ms-overflow-style: none; }
至于 Firefox,无法隐藏滚动条!
firefox隐藏滚动条
scrollbar-width: none;
对于Chrome、Safari和Opera,可以使用如下CSS:
IE或 Edge 可以使用:
至于 Firefox,无法隐藏滚动条!