我爲我的rails應用程序使用了bootstrap 3。在查看頁面中,引導程序圖標未顯示。Bootstrap 3:圖標不顯示
我的文件夾結構看起來像。
app/assets/stylesheets/bootstrap.min.css
app/assets/fonts/ ###font files
app/assets/images/ ###image files
和內部bootstrap.min.css我打電話FONT-FAMILY如下
@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')}
請糾正我,如果我這樣做是錯誤的。
UPDATE:
代碼來顯示圖標:
<a title="edit" href="<%= edit_customer_customer_path(cust, from: "admin")%>">
<i class="icon-pencil bigger-130"></i>
</a>
確保你在'app/assets/fonts /'目錄中有'glyphicons-halflings-regular.eot'和其他文件。 – Surya 2014-10-06 13:04:36
是的,它有.. – 2014-10-06 13:07:08