HTML5 Shiv谷歌CDN链接不工作

HTML5 Shiv Google CDN Link Not Working

本文关键字:工作 链接 CDN Shiv 谷歌 HTML5      更新时间:2023-09-26

此Shiv Google CDN链接不工作。我该怎么办?

<!--[if lt IE 9]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

之所以发生这种情况,是因为CDN链接已针对html5shiv进行了更新。

请从CDNJS试试这个:

<!--[if lt IE 9]>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->

希望这将帮助您:)

这很好,但我认为最好不要添加https://

所以试试:

src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"

来源:https://github.com/twbs/bootstrap/commit/2b802d651dbe4305221cc7c4a2e45123b9e8b699