当 CSS 溢出设置为“滚动”时,SimpleModal 内容不会在 IE8 中加载或“自动”

发布于 2024-10-08 05:40:16 字数 476 浏览 5 评论 0原文

我正在开发的 网站 上使用 simplemodal。在所有浏览器上一切都工作正常,直到我添加“overflow: auto;”我的 simplemodal CSS 如下:

#simplemodal-container {height:90%; width:80%; color:#fff; overflow:

auto;}

在 FF、Safari 和 Chrome 中需要时我会得到滚动条,但是当我在 IE8 中查看它时(没有尝试过 IE6 或 IE7),大多数(如果不是全部)模式的内容丢失。它似乎在旋转,好像在等待服务器,但什么也没发生。

我在网上到处寻找这个问题的答案,但找不到其他人遇到同样的问题。

如果您还需要我提供任何其他信息,请告诉我。

先感谢您!

I'm using simplemodal on a website I'm developing. Everything was working fine across all browsers until I added "overflow: auto;" to my simplemodal CSS as such:

#simplemodal-container {height:90%; width:80%; color:#fff; overflow:

auto;}

I get the scrollbars when needed in FF, Safari, and Chrome just fine, but when I look at it in IE8 (haven't tried IE6 or IE7), most if not all of the content of the modal is missing. It appears to be spinning as though it's waiting for the server, but nothing happens.

I've looked everywhere online for an answer to this issue, but haven't been able to find anyone else who's having the same issue.

Please let me know if you need anything else from me.

Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

走野 2024-10-15 05:40:16

佩卡,谢谢您的浏览。我确信这不是 JavaScript,因为其中一个按钮(恢复)链接到一个带有表格的简单 html 文档,但它甚至没有显示。

但我想我已经弄清楚了!

在 CSS 中,还有一些不透明度设置,我几乎是从 simplemodal 网站复制过来的。但其中一项设置是 IE 解决方法,每当我验证页面时,该解决方法都会引发错误。大约 5 分钟前,我想,“嗯。我想知道是否去掉那些不透明度设置是否可以解决问题。”无论如何,我并没有真正使用它们 - 我已将模态窗口的不透明度设置为 100%。所以我就把这些设置去掉了,现在它可以在 IE 中运行了。去算算吧。

在“图像”模式下,我的缩略图在 IE 中被截断,所以我确实还有一件事需要弄清楚,但至少它现在显示出来了!

呼-雷。

Pekka, thanks for taking a look. I was sure that it wasn't the javascript, because one of the buttons, (resume) links to a simple html doc with a table and that wasn't even showing up.

But I think I've figured it out!

In the CSS, there were also some opacity settings, which I pretty much copied over from the simplemodal website. But one of the settings was an IE workaround that was throwing errors whenever I validated the page. So about 5 minutes ago, I thought, "hm. I wonder if I get rid of those opacity settings if that might do the trick." I wasn't really using them anyway - I had set the opacity of my modal window to 100%. So I just got rid of the settings, and now it works in IE. Go figure.

On the "images" modal, my thumbnails are getting cut off in IE, so I do have one more thing to figure out, but at least it's showing up now!

HOO-RAY.

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