我不知道如何将其从Bs3转换到Bootstrap 4:
<div class="input-group date">
{% include "bootstrap_datepicker_plus/input.html" %}
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
我看到gyphicon
被删除了,所以我用fa fa-calendar
替换了它,并添加了适当的样式表。
我不能让那个按钮工作--那是glyphicon
发布于 2018-05-30 14:57:13
根据您的问题,我认为您正在使用字体强大的图标
要包含字体强大的库,请访问以下链接:
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
即使是最新的Font awesome package 5
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
类已重命名为far fa-calendar
,如link中所示
发布于 2018-05-30 13:52:43
应该是这样的。请注意,您还没有说明您使用的是哪个版本的font- stated。我以为是this
<div class="input-group date">
{% include "bootstrap_datepicker_plus/input.html" %}
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
</div>
发布于 2018-05-30 13:57:00
https://stackoverflow.com/questions/50597175
复制相似问题