我在获取DateTime Picker(https://github.com/smalot/bootstrap-datetimepicker)的Bootstrap3版本中显示的箭头时遇到问题。

下载随附的示例也缺少箭头,但是bootstrap2示例具有箭头。

其他所有工作均正常进行,然后单击箭头应按预期导航的位置。我假设浏览器正在搜索图标,并且它们应该在该位置。

想知道是否有人遇到此问题并知道如何解决?否则,也许将对一些有关如何进行故障排除的建议表示赞赏。

最佳答案

通过对仓库的最新更新已解决了该问题。否则,搜索并替换../bootstrap-datetimepicker.js中的以下行具有相同的效果:

更换:

    headTemplateV3:   '<thead>' +
                          '<tr>' +
                          '<th class="prev"><i class="icon icon-arrow-left"></i> </th>' +
                          '<th colspan="5" class="switch"></th>' +
                          '<th class="next"><i class="icon icon-arrow-right"></i> </th>' +
                          '</tr>' +
        '</thead>',


与:

headTemplateV3:   '<thead>'+
                        '<tr>'+
                            '<th class="prev"><i class="glyphicon glyphicon-arrow-left"/></th>'+
                            '<th colspan="5" class="switch"></th>'+
                            '<th class="next"><i class="glyphicon glyphicon-arrow-right"/></th>'+
                        '</tr>'+
                    '</thead>',

10-05 20:47
查看更多