我已经下载了twitter引导文件,并将其作为添加到包/引导路径下的laravel的公共文件夹中
---css
---js
---字体
我使用以下代码链接了样式表。
{{ HTML::style('packages/boot/css/bootstrap.min.css') }}
{{ HTML::style('packages/boot/css/style.css') }}
这些样式规则运行良好,但字形图标不起作用。有人请帮我做这个。
引导CSS使用(或类似):为字形图标添加所需的字体
@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.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
}
那个路径指向真正的字体文件吗?你能给我们一个HTML的演示吗?
删除最后一个包含的文件:
url('../fonts/glyphiconshallings-regular.svg#glyphicons hallings-regular)格式('svg')
为我工作。