Failed to load resource: the server responded with a status of 404 (Not Found)
glyphicons-halflings-regular.woff2
(1)可以直接使用链接
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
(2)下载到本地
<link rel="stylesheet" href="css/bootstrap.min.css">
会出现以下问题,缺少以下文件:
- glyphicons-halflings-regular.eot
- glyphicons-halflings-regular.svg
- glyphicons-halflings-regular.ttf
- glyphicons-halflings-regular.woff
- glyphicons-halflings-regular.woff2
(3)下载这些文件
网址:http://cdn.bootcss.com/bootstrap/3.3.6/fonts/ 这里加上所缺少的文件就可以下载了。比如,你缺少:
- glyphicons-halflings-regular.woff2
网址就是: http://cdn.bootcss.com/bootstrap/3.3.6/fonts/glyphicons-halflings-regular.woff22
(4) 我的建议是你将它直接下载到和bootstrap.min.css同目录里面,这样方便你后期的地址更改
(5)然后在你下载到本地里面的bootstrap.min.css中 使用Ctrl+f键查找
fonts/glyphicons-halflings-regular.woff2
(6)然后你会看到它的地址是
src:url(../fonts/glyphicons-halflings-regular.woff2)
你将相应的地址改到位,因为你下载的glyphicons-halflings-regular.woff2,是和bootstrap.min.css在同一目录下面的,这样你就可以直接这样应用
src:url(glyphicons-halflings-regular.woff2)
这样重复1 2 3 4 步直到你浏览器中没有了这样的错误提示为止。