【问题标题】:Strange error when using CSS boostrap使用 CSS 引导程序时出现奇怪的错误
【发布时间】:2016-04-21 11:56:08
【问题描述】:

我导入了一个引导 CSS 文件,但我收到了一个奇怪的错误:

完整性属性中没有一个“sha384”哈希与子资源的内容匹配。

我用这个链接导入文件:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

【问题讨论】:

  • 错误试图告诉你,你的哈希是错误的。
  • 谢谢,我解决了,href错误,如你所说
  • 我认为您使用的完整性与引导程序的缩小样式表有关。将您的引导源更改为 bootstrap.min.css 应该可以为您消除该错误。

标签: css twitter-bootstrap


【解决方案1】:

我只是添加了错误的链接,这是好的链接,注意它得到了 min.css:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-12-26
  • 2013-08-22
  • 2021-07-21
  • 2020-08-30
  • 2013-05-05
  • 2011-06-15
  • 2017-03-04
相关资源
最近更新 更多