简体   繁体   English

如何隐藏多个图像容器的垂直滚动条?

[英]How to hide vertical scrollbar for multiple image containers?

I want to have a container that has multiple vertical images that go off the screen which can be scrolled up/down. 我想要一个容器,该容器具有多个可以在屏幕上向上/向下滚动的垂直图像。 I also want the scrollbar to be hidden. 我也希望隐藏滚动条。 An example is here: https://www.calm.com/ 一个示例在这里: https : //www.calm.com/

Does anyone know how I can do this (preferably without JavaScript?) 有谁知道我该怎么做(最好不用JavaScript?)

Try this example 试试这个例子

#parent{
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#child{
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM