我希望能够水平滚动,但不显示滚动条。
我知道,在Chrome中是:
::-webkit-scrollbar {
display: none;
}
但是Firefox和Internet Explorer呢?有人提供以下解决方案,但似乎不适用于水平滚动条,它仅适用于垂直滚动条。
#parent{
height: 100%;
width: 100%;
overflow: hidden;
}
#child{
width: 100%;
height: 100%;
overflow-y: scroll;
padding-right: 17px;
}
有没有人可以帮助我?
对于fire fox
只使用这样的规则:
overflow: -moz-scrollbars-none;
为IE
:
-ms-overflow-style: none;
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句