簡體   English   中英

引導Glyphicons在laravel 4中不起作用

[英]Bootstrap Glyphicons not working in laravel 4

我已經下載了twitter bootstrap文件,並將其添加到laravel的package / boot路徑下的公用文件夾中,如下所示:

--- 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 / glyphicons-halflings-regular.svg#glyphicons-halflingsregular')format('svg')

為我工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM