【发布时间】:2014-01-13 22:54:34
【问题描述】:
我正在设计一个模板网站。该网站在除 IE 之外的所有浏览器中都能正常运行。
在 IE 中打开时,网站重定向到 404 错误页面。
【问题讨论】:
标签: html asp.net internet-explorer redirect
我正在设计一个模板网站。该网站在除 IE 之外的所有浏览器中都能正常运行。
在 IE 中打开时,网站重定向到 404 错误页面。
【问题讨论】:
标签: html asp.net internet-explorer redirect
试试这个。
if(navigator.appName == 'Microsoft Internet Explorer'){
alert('This is Internet Explorer');
//Your redirection code here
}
【讨论】:
【讨论】:
Trial and Error 方法来查找错误。就像删除页面中的一些元素并重新加载一样。这样做,直到它工作。
var navigatorAgent = navigator.userAgent;
if(navigatorAgent.indexOf("MSIE") != -1) {
//your redirection code comes here
}
或
var browserName = navigator.appName;
if( browserName === "Microsoft Internet Explorer") {
//your redirection code comes here
}
注意:如果使用 JQuery: $.browser 属性在 jQuery 1.3 中已弃用,其功能可能会在 jQuery 的未来版本中移至团队支持的插件中
【讨论】:
if(navigator.appName == 'Microsoft Internet Explorer'){
alert('IE');
//Your code
}
【讨论】:
问题解决了,因为文件馅饼 删除 pie 文件在 ie 中不显示 masseg 错误 404
非常棒
【讨论】: