模式弹出窗口显示在页面底部
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有趣的。 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.
已解决.. 主要问题是该页面是使用 HTML 文档类型设置的...将其更改为 XHTML 过渡修复了此问题。
Solved.. the main problem was that the page was set with HTML doctype... Changing it to XHTML transitional fixed this issue.