bootstrap字体报错处理
创建时间:2018-02-10 投稿人: 牛哥 浏览次数:7035
后台发现大量的bootstrap字体文件无法找到,原因是路径设置错误造成的。修改方法:
打开bootstrap.css文件,找到以下代码,将字体路径设置为正确的路径即可停止报错。因为个人书写习惯改变了bootstrap的文件存放结构所以引发了这个404错误。
@font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings regular.svg#glyphicons_halflingsregular') format('svg'); }
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。