Bootstrap 3.0.0中断datepicker图标 [英] Bootstrap 3.0.0 breaks the datepicker icon

查看:121
本文介绍了Bootstrap 3.0.0中断datepicker图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是演示



如果您使用2.3.1,取消注释行12,您将看到按钮正确显示



有谁知道如何解决3.0.0版本 - rc1?

解决方案

UPADTE



<对于Bootstrap 3 Release Candidates,下面的答案是正确的,然而稳定的版本确实包括需要基础类和个别图标类的Glyphicons库,例如:

 < span class =glyphicon glyphicon-calendar>< / span> 

原始答案



从文档中:


随着Bootstrap 3的推出,图标已被移动到单独的
存储库
。这使得主要项目的
尽可能的精简,使人们更容易获得
交换图标库,并使Glyphicons图标字体更容易
可用于更多的Bootstrap外部人员。


这意味着您需要单独包含glyphicons,您可以使用 Bootstrap自己的图标或其他图书馆,如 Font Awesome


Here is the Demo

If you use 2.3.1, uncomment line 12 and you will see the button appearing correctly

Does anyone know how can I fix it for version 3.0.0-rc1?

解决方案

UPADTE

The answer below was true for Bootstrap 3 Release Candidates, however the stable version does include the Glyphicons library which requires a base class and an individual icon class, ex:

<span class="glyphicon glyphicon-calendar"></span>

Original answer:

From the docs:

With the launch of Bootstrap 3, icons have been moved to a separate repository. This keeps the primary project as lean as possible, makes it easier for folks to swap icon libraries, and makes Glyphicons icon fonts more readily available to more people outside Bootstrap.

That means you need to include the glyphicons separately, you can use Bootstrap's own icons or another library like Font Awesome

这篇关于Bootstrap 3.0.0中断datepicker图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆