IE7 中的 jQuery UI 对话框位置
在 IE7 中,我的 jQuery-UI 对话框打开器似乎将焦点设置到对话框的(不可见)位置,该位置位于 的末尾。其他浏览器将焦点保持在原处,以便您可以阅读位于视口中心的对话框。因此,效果是,在 IE7/8 中,当单击打开器时,页面滚动到底部,经过对话框。
我想我已经把所有相关的内容都包含在这里了。
使用:jQuery v1.4.2,jQuery-UI 1.8.17,无主题
更新 这是一个工作示例。这基本上包含了使我的页面到达现在位置所涉及的所有内容。在 Firefox、Chrome 和 IE8 中似乎一切正常,但 IE7 仍然无法运行。谢谢!
In IE7, my jQuery-UI dialog openers seem to be setting focus to the (invisible) position of the dialog, which is at the end of the <body>
. Other browsers maintain focus where it is so you can read the dialog, which is centered in the viewport. So the effect is that in IE7/8 the page scrolls to the bottom, past the dialog, when the opener is clicked.
I think I have all the relevant bits included here.
Using: jQuery v1.4.2, jQuery-UI 1.8.17, no theme
UPDATE Here is a a working example. This has basically everything involved in getting my page to where it's at now. Everything seems to work in Firefox, Chrome and IE8 but IE7 is still not behaving. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想通了。问题是我没有使用主题。我只需要一个简单的皮肤,所以我想我只需向现有的 CSS 添加一些规则,而不是添加整个主题的开销,但这不适用于
I figured it out. The problem was that I was not using a Theme. I just needed a simple skin, so I thought I'd just add some rules to my existing CSS instead of adding the overhead of a whole theme, but that doesn't work for