datetimepicker的图标没有显示

问题描述 投票:0回答:1

我使用bootstrap 4,fontawesome v5.7和这个插件https://tempusdominus.github.io/bootstrap-4/Usage/

它的工作日历,但我的问题是图标没有显示

看这个屏幕:

enter image description here

javascript jquery datepicker datetimepicker tempus-dominus-datetimepicker
1个回答
2
投票

以下代码解决了我的问题。

$.fn.datetimepicker.Constructor.Default = $.extend({},
            $.fn.datetimepicker.Constructor.Default,
            { icons:
                    { time: 'fas fa-clock',
                        date: 'fas fa-calendar',
                        up: 'fas fa-arrow-up',
                        down: 'fas fa-arrow-down',
                        previous: 'fas fa-arrow-circle-left',
                        next: 'fas fa-arrow-circle-right',
                        today: 'far fa-calendar-check-o',
                        clear: 'fas fa-trash',
                        close: 'far fa-times' } });

enter image description here

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.