Jquery对话框滚动条解决方案
我的对话框中有一个结果集,我想滚动它(如果结果跨度大于实际对话框高度)。我通过以下方法执行此操作: $("#'||the_result_set_id||'").css({溢出:"滚动"});
这似乎与 IE 与 Mozilla 的比较不一致。有没有更好的解决方案,我可以让滚动条出现在两个浏览器中?目前,滚动条未出现在 IE 中。
I have a result-set in my dialog box that I would like to scroll (if the results span larger than the actual dialog height. I am doing this via the following method:
$("#'||the_result_set_id||'").css({overflow:"scroll"});
This doesn't seem to be consistent with IE versus Mozilla. Is there a better solution for this, where I can get scrollars to appear for both browsers? Currently, the scrollbars are not appearing in IE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果设置对话框的高度,它应该根据需要添加滚动条。
示例:http://jsbin.com/ixipa3/2
if you set the height of the dialog, it should add scrollbars as needed.
Sample: http://jsbin.com/ixipa3/2