jQuery SlideUp 在 IE 中不起作用
我正在构建一个网站,我使用 jQuery 在索引页面上创建动态信息部分。它可以在 Opera、Chrome 和 Firefox 中运行,您可以在此处看到(如果您使用这 3 种浏览器之一进行浏览):
http://www.verhoevenkevin2011.dreamhosters.com/index.php
只需将鼠标悬停在刻度上,您就会看到效果。
但是,如果您使用 Internet Explorer 浏览,用于此效果的两个 div 将显示在彼此下方,而不是彼此上方,如下所示:
http://img38.imageshack.us/content_round.php?page=done&l=img38/9358 /jqsli.jpg&via=mupload
然而,div 的底部副本似乎确实可以正常工作。我一直在互联网上寻找一些帮助,但我对 jQuery 相当陌生,似乎没有找到解决方案。
I'm building a website where I'm using jQuery to make a dynamic information part on the index page. It is working in Opera, Chrome and Firefox as you can see here (if you are browsing with one of these 3 browsers):
http://www.verhoevenkevin2011.dreamhosters.com/index.php
Just hover over the scales and you will see the effect.
However, if you are browsing with Internet Explorer, the two div's that are used for this effect are shown under each other instead of on top of eachother, like this:
http://img38.imageshack.us/content_round.php?page=done&l=img38/9358/jqsli.jpg&via=mupload
The bottom copy of the divs however does seem to work as it should. I have been looking around the internet for some help, but I'm fairly new to jQuery and don't seem to find a solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的 HTML 有问题。具体来说,您缺少结束
-
IE 往往对错误的语法很挑剔,而 Firefox 和 Chrome 则倾向于尝试解释您的代码并根据需要进行修复。希望有帮助!
You have a problem with your HTML. Specifically that you're missing a closing
</div>
in -IE tends to be finicky about bad syntax wheres Firefox and Chrome tend to try to interpret your code and fix it up as needed. Hope that helps!