Suckerfish 下拉菜单在 IE 8 中不起作用
这是一个奇怪的错误,我无法弄清楚,因为我已经在我的电脑上在 XP 上的 IE7 和 IE8 中测试了它,它工作得很好。
但是在 XP 中此站点的主导航已损坏:
http://tupelomainstreet.com/play
我已经附上我客户的屏幕和环境的屏幕截图。
如果有人对 IE 有任何黑魔法,那就太棒了。我不知所措。
This is a weird bug that I can't figure out because I have tested it on my PC in IE7 and IE8 on XP and it's working just fine.
But the main navigation is broken in XP on this site:
http://tupelomainstreet.com/play
I've attached screenshots of my client's screen and environment.
If anyone has any black magic for IE, that would be amazing. I'm at a loss.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 http://tupelomainstreet.com/shop/salons-and-spas 上:
您从您的服务器重新加载这些 JavaScript 文件:
<脚本 src="js/mylibs/fancyzoom.js">
<脚本 src="js/mylibs/slideshow.js">
lt IE 7
);
让我们继续使用
modernizr-1.6.min.js
。如果我加载该文件,我得到的东西看起来明显不像 JavaScript 文件:
返回 HTML 页面的事实肯定是 mod_rewrite 的工作。如果没有
mod_rewrite
,我确信您会收到一个很好且易于调试的404 Not Found
错误。我相信解决此问题的最简单方法是在脚本前面添加
/
:这将加载 正确的文件。
可以肯定的是,这个问题就是导致 Internet Explorer 菜单失效的原因。
On http://tupelomainstreet.com/shop/salons-and-spas:
You're loading these JavaScript files from your server:
<script src="js/libs/modernizr-1.6.min.js"></script>
<script src="js/mylibs/fancyzoom.js"></script>
<script src="js/mylibs/slideshow.js"></script>
<script src="js/plugins.js"></script>
<script src="js/script.js"></script>
lt IE 7
only)<script src="js/libs/dd_belatedpng.js"></script>
Let's stick with
modernizr-1.6.min.js
.If I load that file, I get something which looks distinctly not like a JavaScript file:
The fact that a HTML page is being returned is surely the work of
mod_rewrite
. Withoutmod_rewrite
, I'm sure you'd be getting a nice, easy to debug404 Not Found
error instead.I believe the easiest way to fix this is to prepend the script includes with
/
:This will load the correct file.
It's a very safe bet that this problem is what's killing your menu in Internet Explorer.