css内容超出元素高度可滚动并且隐藏滚动条

.div::-webkit-scrollbar {
  display: none; / Chrome Safari /
}
.div{
  scrollbar-width: none; / firefox /
  -ms-overflow-style: none; / IE 10+ */
  overflow-x: hidden;
  overflow-y: auto;
}
posted @ 2022-10-17 15:30  SultanST  阅读(30)  评论(0编辑  收藏  举报