link 到 html5shiv.js 放在哪里?在 css <styles> 或其他 <script> 标签之前?

Where to put link to html5shiv.js? Before css <styles> or with other <script> tags?

据我了解 html5shiv.js 文件 "teaches" 像 IE 这样的浏览器可以正确处理 CSS3:

<!--[if lt IE 9]>
    <script src="scripts/html5shiv.js"></script>
<![endif]-->

我应该在哪里添加它 - 在样式标签之前还是在页面底部?

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
    <!-- Where to put this link to html5shiv? -->
    <!--[if lt IE 9]><script src="scripts/html5shiv.js"></script><![endif]-->
    <link rel="stylesheet" href="some.css"/>
</head>
<body>

    <!--html content -->

    <!-- scripts should be loaded after DOM is constructed -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
    <script type="text/javascript">
        // some scripts here..
    </script>
</body>
</html>

如果你开始使用一个新的工具或代码片段或库并且第一眼看不懂它,你真的应该开始阅读手册!

Include the HTML5 shiv in the of your page in a conditional comment and after any stylesheets.

参见:https://github.com/afarkas/html5shiv