Jquery 滚动窗格
正如任何人都遇到过的问题一样,仍然能够滚动到您正在滚动的 div 的边界之外。
由于法律原因,我无法发布代码。
As anybody ever have add issue with still being able to scroll outside the boundaries of the div you are scrolling.
For legal reasons am unable to post the code sadly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我假设正确,您正在使用 jScrollPane 并且滚动容器在窗口调整大小时会扩展到窗口尺寸之外。代码中存在一个错误,即计算内容和容器的宽度和高度。基本上,您需要在调整窗口大小时重新分配宽度和高度。这是一个工作示例:
If i assume correctly, you are using jScrollPane and the scroll container expands beyond the window dimensions on window resize. There is a bug in the code where the width and height is calculated for the content and container. Basically, you need to reassign the width and height on window resize. Here is a working example:
事实上,我使用的是 jquery 1.2.6,我必须升级到 jquery 1.3.2 才能解决我的问题。
感谢您的评论 Ace Trajkov
It actually turned out to be the fact i was using jquery 1.2.6, I had to upgrade to jquery 1.3.2 to solved my issue.
Thank you for your comments Ace Trajkov