我想知道是否可以设置特定尺寸以垂直滚动?
我有我的 <body></body>
高度为 2500 像素,我在女巫上方放置了一个覆盖 div,其中包含一个高度为 1300 像素的表格。
当我滚动时,我的滚动条采用主体的垂直尺寸,我想在顶部 1300 像素处停止滚动条。
我可以在 css 或 js 中这样做吗?
请帮帮我!
最佳答案
您可能可以使用 scroll() 和 scrolltop() JQuery 函数来实现这一点。 请查看链接: jquery scroll to a px count from top and then set a div to be fixed from the top for the rest of the scroll
关于javascript - 如何在CSS中应用特定的滚动尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46317728/