Joomla 3 Bootstrap Button不会显示glyphicons

时间:2014-07-06 18:32:16

标签: twitter-bootstrap button joomla glyphicons

我想在我的一个视图中集成Bootstrap Buttons。

但整合并不真正有效。将显示该按钮,但字形不存在。

作为一个简单的例子,我整合了bootstrap主页中的示例 http://getbootstrap.com/components/#glyphicons-how-to-use

<button type="button" class="btn btn-default btn-lg">
  <span class="glyphicon glyphicon-star"></span> Star
</button

当我有兴趣使用时,我是否需要整合一些特殊内容 Bootstrap按钮和glyphicons?

1 个答案:

答案 0 :(得分:4)

如果您指的是 Joomla 3和/ administrator 视图,Joomla会使用Bootstrap 2.3,因此您需要使用the button classesthe icon classes from that version。 e.g。

<button type="button" class="btn btn-success btn-large">
  <i class="icon-star"></i> Star
</button>

这将导致:

rendered example of bootstrap 2.x button in Joomla 3

此外,ico-moon中有/media/jui个字体图标的子集,您可以a visual reference向他们找到Kyle Ledbetter's web site

最后,您还可以在/media/jui/fonts/IcoMoon.dev.commented.svg带注释的文件中找到它们,并附上可以搜索的图标说明。

如果您指的是Joomla 3之前的 Joomla 3前端视图或版本,您如何加载Bootstrap 3?你能看到你的视图在HTML输出中引用的Bootstrap文件吗?

相关问题