我不知道如何将其从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

最佳答案

根据您的问题,我认为您正在使用Font Awesome Icons

要包括字体真棒库,请点击以下链接:

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">


即使按照最新的Font Awesome CDN软件包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中所示

关于html - bootstrap 3到 bootstrap 4,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50597175/

10-13 02:27