首页 > 其他分享 >隐藏overflow滚动条(多兼容)

隐藏overflow滚动条(多兼容)

时间:2022-11-20 03:44:05浏览次数:42  
标签:flex hidden 兼容 滚动条 overflow height display

外层套一个overflow:hidden
parentBox

 width: 318px;
//这里为了隐藏y轴的滚动条(Ie)
  min-height: 48px;
  display: flex;
  overflow: hidden;
  margin: 18px auto 17px 15px;

ChildBox

  width: 318px;
  min-height: 48px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
 overflow: scroll;
  &::-webkit-scrollbar {
    // chrome safari
    display: none;
  }
  overflow-x: scroll;
overflow-y: hidden;
/*解决ios上滑动不流畅*/
-webkit-overflow-scrolling: touch;
padding-bottom: 25px;

标签:flex,hidden,兼容,滚动条,overflow,height,display
From: https://www.cnblogs.com/czh0316/p/16907820.html

相关文章