ie7中的jQuery和XHTML布局问题
我再次回来,但我即将推出的网站出现了更多布局问题。我能够通过我的布局/启动在每个现代浏览器(不包括 ie7 或更旧版本)上实现正确的动画、定位和结果。
我在页面中央有一个图像,即文本对齐:居中,并通过将页面上半部分的 div (#SPLASH_HEAD) 设置为 50% 将其推到垂直中心。加载动画将 #SPLASH_HEAD 的高度更改为 0px,以将图像拖动到顶部(然后执行其他操作)。
在 ie7(或兼容模式)中,jquery-1.4.2.min.js 中的第 116 字符 165 行似乎有错误(我认为这与实际的 jQuery 文件本身没有任何关系)。启动画面既没有垂直居中(#SPLASH_HEAD 未在窗口高度的 50% 处注册),也没有与 margin-left 正确居中。另外,其他元素都没有正确隐藏(使用 .hide()),因为 ie7 似乎没有加载我的所有 jQuery / javascript。
这是一个链接:www.voidsync.com/test(在在那里)
谢谢!
I am back again with more layout problems on my up and coming website. I am able to achieve the proper animation, positioning and results with my layout / splash on every modern browser (excluding ie7 or older).
I have an image in the center of the page, that is text-align: center'd, and pushed to a vertical center by having a div (#SPLASH_HEAD) set to 50% on the top half of the page. The loading animation changes the height of #SPLASH_HEAD to 0px, to drag the image to the top (and then do other things).
In ie7 (or compatability mode), it appears that there is an error in jquery-1.4.2.min.js, line 116 char 165 (which I dont think has anything to do with the actual jQuery file itself). The splash is not centered either vertically (#SPLASH_HEAD does not register at 50% of window height) and is not centered properly with margin-left. Also, none of the other elements are hidden properly (with .hide()) as ie7 does not appear to be loading all of my jQuery / javascript.
heres a link: www.voidsync.com/test (it would be easier to view the source on there)
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 jquery.js 的第 66 行,您传递了值“inherit”。 IE有时也适合这个值。
尝试注释掉该行。然后,在 IE7 中刷新页面。如果问题仍然存在,请将值更改为“auto”或“”。
如果这不能解决问题,请尝试将您的设计移回 jquery 1.3.2。昨天我在 jquery 中发现了一个错误,很可能你也有。祝你好运!
On line 66 of your jquery.js you're passing the value "inherit." IE sometimes has a fit with this value.
Try commenting out that line. Then, refresh your page in IE7. If the problem persists, change the value to either "auto" or "".
If that doesn't solve the problem, try moving your design back to jquery 1.3.2. I found a bug in jquery just yesterday, and it's possible you have too. GOOD LUCK!