以下是我的 HTML 标记
<button class="btn btn-default" type="submit">
<i class="glyphicon glyphicon-camera"></i>
</button>
我更改了以下行变量。less
@icon-font-path: "..\fonts";
字体文件夹包含四个文件 - glyphicons-halflins 的 eot、svg、ttf 和 woff 扩展文件
以下是文件夹结构 -
- 内容\bootstrap.css
- 内容\bootswatch.css
- 内容\变量.less
- Contact\fonts - 所有四个文件(扩展名 - eot、svg、ttf 和 沃夫)
知道为什么它不在网页中显示图标吗?
非常感谢对此的任何帮助。
最佳答案
您使用反斜杠来指定路径。你试过用正斜杠吗? 看看Is there a way to set a common image path for LESS files? 。它们都使用了正斜杠。
关于asp.net-mvc - 字形图标未出现在我已实现 Bootstrap 的 MVC 站点中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25211268/