浏览器兼容问题 [英] Browser Compatibility Problem

查看:80
本文介绍了浏览器兼容问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHP和Mysql开发一个站点并面临以下问题。请看看以下链接:

http://mssportfolio.com/dress/dressdetails.php?id=3


这个特殊的链接在Firefox中运行良好,但在IE中没有显示任何内容。问题在于编写的javascript.javascript是通过单击该图像来最大化图像,并通过单击下一步按钮移动到下一图像。 button.if我评论该脚本,没有javascript的内容工作正常。如何纠正这个问题?


Thnx提前:)

I am developing a site using PHP and Mysql and facing the following problem.kindly have a look at the following link:

http://mssportfolio.com/dress/dressdetails.php?id=3

This particular link works fine in Firefox but displaying nothing in IE.The problem is with the written javascript.The javascript is to maximize the image by clicking on that image and to move to the next image by clicking the "Next" button.if i comment that script,the contents without javascript are working fine.How to rectify this issue?

Thnx in advance :)

推荐答案

如果您*知道*问题是javascript,为什么要在PHP中发布它?我已经为你移动了。


问题似乎是你忽略了在第二个< script />中关闭你的HTML评论。标记。
If you *know* the problem is the javascript, why would you post it over in PHP? I''ve moved it for you.

The problem appears to be that you have neglected to close your HTML comment in the second <script /> tag.


抱歉和谢谢。正常工作..
Sorry and Thanks.working fine..


除非您想支持真正的旧版浏览器,否则现在可​​以省略HTML注释。您不需要隐藏现代浏览器中的JavaScript。更好的是,将JavaScript代码保存在单独的文件中。
Unless you want to support really old browsers, you can omit the HTML comments now. You don''t need to hide JavaScript from modern browsers. Better still, keep your JavaScript code in a separate file.


这篇关于浏览器兼容问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆