当用户使用Microsoft Edge访问我的网站时,如何显示错误页面? [英] How do I show an error page when users visit my site using Microsoft Edge?

查看:156
本文介绍了当用户使用Microsoft Edge访问我的网站时,如何显示错误页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户在Microsoft Edge中加载我的网站时,我需要显示如下图所示的页面:

When a user loads my website in Microsoft Edge, I need to show a page like in the below image:

当我尝试访问Edge上的www.naver.comwww.daum.net之类的网站时,我会看到此页面.

I can see like this page when I'm trying to access sites like www.naver.com or www.daum.net on Edge.

该页面看起来像是Microsoft提供的,我想这里有 调用此页面的任何Javascript函数

That page looks like a Provided from Microsoft , and I guess there are Any Javascript function to call this pages

我需要知道..

推荐答案

如果可能的话,应避免检测到浏览器,而转而使用跨浏览器运行的现代Web技术.您可以使用的一个很棒的工具是 http://dev.modern.ie/tools/staticscan上的站点/有助于识别常见问题,例如过时的js库或css前缀.

If possible you should avoid browser detection and move to modern web technologies that work across browsers. A great tool you can use is the sitescan on http://dev.modern.ie/tools/staticscan/ that helps to identify common issues, like outdated js libraries or css prefixes.

如果您的应用需要ActiveX或其他特定于IE的特性等旧技术,则可以:

If your app requires legacy technology like activeX or other IE specifics you can:

  • 已将您的网站添加到Microsoft管理的兼容性列表中 (对于公共网站)

  • have your site added to to compatiblity list managed by Microsoft (for public sites)

或为您的公司/Intranet创建企业站点列表 确定在IE(而不是Edge)中打开哪些页面的页面.

or create an enterprise site list for your company / intranet pages which determines which pages to open in IE instead of Edge.

查尔斯在此处提供了一些详细信息: https://stackoverflow.com/a/31283160/5138360

Charles provided some details here: https://stackoverflow.com/a/31283160/5138360

这篇关于当用户使用Microsoft Edge访问我的网站时,如何显示错误页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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