我尝试将 integrity 和 crossorigin 属性添加到上面的链接,但在 Visual Studio 2015 中都显示为链接标记的无效属性。解决方案是什么。
最佳答案
似乎 Visual Studio 没有更新它的 HTML5-Validator。这些是增加页面浏览者安全性的合法参数。 虽然将这些指示为无效参数,但它们仍然会被渲染。所以您可以安全地忽略这些警告。
这些参数的一些背景可以在这里找到:What are the integrity and crossorigin attributes?
关于css - integrity 和 crossorigin 属性在链接标记中显示为无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54140860/