Jquery对话框滚动条解决方案

发布于 2024-08-19 02:51:42 字数 181 浏览 4 评论 0原文

我的对话框中有一个结果集,我想滚动它(如果结果跨度大于实际对话框高度)。我通过以下方法执行此操作: $("#'||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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑,眼淚并存 2024-08-26 02:51:42

如果设置对话框的高度,它应该根据需要添加滚动条。

$("#dialog").dialog({
  height: 100
});

示例:http://jsbin.com/ixipa3/2

if you set the height of the dialog, it should add scrollbars as needed.

$("#dialog").dialog({
  height: 100
});

Sample: http://jsbin.com/ixipa3/2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文