怎么让博客强行不支持ie10及以下的版本.
发布于 7 年前 作者 ystyle 3279 次浏览 来自 问答

有没有简单的实现方式? 如果有像那些no baidu ; no abp 的那样界面的就好了.

因为博客是在github pages 的, 所以只能前端实现了

4 回复

用js 判断某些IE特有的行为,希望跑转到警告页面。

前段用js判断,跳转到错误页 自豪地采用 CNodeJS ionic

    <!--[if lt IE 9]>
      <p style="text-align: center!important; margin: 0 0 0.5em!important; background-color: #d9534f!important; color: #fff!important; padding: 0.5em 1em!important;">You are using an <strong>outdated</strong> browser. Please <a style="color: #fff!important; text-decoration: underline!important;" href="http://browsehappy.com/?locale=en">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->

出自这里

你也可以改改 style,做成全屏的红色警告。

回到顶部