使用 jQuery 在 DOM 中添加项目,无需更新浏览器滚动条
我添加了许多
- ;使用 jQuery 和附加方法。
当有更多的
我在Firefox和Chrome中都试过了,效果是一样的。
I am adding many <li> to a <ul> using jQuery with the append method.
When there is more <li> than the browser space can accomodate, I expected the vertical scrollbar to enable scrolling but it doesn't show at all.
I have tried this in Firefox and Chrome and the effect is the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来你有一个CSS问题。滚动条由 css 溢出属性决定。
尝试
或
it sounds like you have a css issue. Scrollbars are determined by the css overflow property.
try
or
最后,这个问题是由于我使用的ExtJS布局系统引起的......
Finally, the problem was caused because of the ExtJS Layout system I was using...