模式弹出窗口显示在页面底部

发布于 2024-08-20 18:09:00 字数 375 浏览 5 评论 0原文

我正在使用 asp.net ajax,并在网页中使用模态弹出扩展程序。该弹出窗口在 Firefox 和 Google Chrome 中显示正常,但在 IE8 中显示在页面底部。我尝试通过 JavaScript 控制外观:

var Image1_ModalPopupExtender = $find("Image1_ModalPopupExtender");
Image1_ModalPopupExtender.set_X(100);
Image1_ModalPopupExtender.set_Y(100);
Image1_ModalPopupExtender.show();

它可以在 FF 和 Chr 中工作,但在 IE8 中仍然没有运气......有什么想法吗?

I'm using asp.net ajax, with modal popup extender in a web page. The popup appears fine in Firefox and Google Chrome, but it shown at the bottom of the page in IE8. I tried to control the appearance through JavaScript:

var Image1_ModalPopupExtender = $find("Image1_ModalPopupExtender");
Image1_ModalPopupExtender.set_X(100);
Image1_ModalPopupExtender.set_Y(100);
Image1_ModalPopupExtender.show();

and it works in FF and Chr, but still no luck in IE8... any idea?

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

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

发布评论

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

评论(2

小瓶盖 2024-08-27 18:09:00

有趣的。 asp 和 IE ->微软.
如果您通过 dom 而不是通过对象选择来手动设置弹出窗口的样式,会发生什么情况?
(例如 document.getElementById('popupid') 或 $('#popupid') )。
你能在设置X和Y之前和之后提醒它的左侧和顶部吗?

为了更好地理解/帮助您,需要更多信息。类似于示例页面的东西。

Funny. asp and IE -> microsoft .
Wat happens if you manually set the style of the popup by selecting it via the dom, and not via the object?
(so something like document.getElementById('popupid') or $('#popupid') ).
Could you alert its left and top before and after you set X and Y?

A bit more information is required in order to better understand/help you. something like an example page.

猥琐帝 2024-08-27 18:09:00

已解决.. 主要问题是该页面是使用 HTML 文档类型设置的...将其更改为 XHTML 过渡修复了此问题。

Solved.. the main problem was that the page was set with HTML doctype... Changing it to XHTML transitional fixed this issue.

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