我想使用此图标选择器:https://fonticonpicker.github.io/,并且要以超棒的字体使用它,但是我无法在选择器中显示我的图标。 我已经做了这个jsfiddle来测试它:https://jsfiddle.net/anwes87q/
var fnt_icons_categorized = {
"Accessibilité": ["fab fa-accessible-icon", "fas fa-american-sign-language-interpreting", "fas fa-assistive-listening-systems", "fas fa-audio-description", "fas fa-blind", "fas fa-braille", "fas fa-closed-captioning", "far fa-closed-captioning", "fas fa-deaf", "fas fa-low-vision", "fas fa-phone-volume", "fas fa-question-circle", "far fa-question-circle", "fas fa-sign-language", "fas fa-tty", "fas fa-universal-access", "fas fa-wheelchair"],
"Monnaie": ["fab fa-bitcoin", "fab fa-btc", "fas fa-dollar-sign", "fas fa-euro-sign", "fab fa-gg", "fab fa-gg-circle", "fas fa-lira-sign", "fas fa-money-bill-alt", "far fa-money-bill-alt", "fas fa-pound-sign", "fas fa-ruble-sign", "fas fa-rupee-sign", "fas fa-shekel-sign", "fas fa-won-sign", "fas fa-yen-sign"],
"Date & heure": ["fas fa-bell", "far fa-bell", "fas fa-bell-slash", "far fa-bell-slash", "fas fa-calendar", "far fa-calendar", "fas fa-calendar-alt", "far fa-calendar-alt", "fas fa-calendar-check", "far fa-calendar-check", "fas fa-calendar-minus", "far fa-calendar-minus", "fas fa-calendar-plus", "far fa-calendar-plus", "fas fa-calendar-times", "far fa-calendar-times", "fas fa-clock", "far fa-clock", "fas fa-hourglass", "far fa-hourglass", "fas fa-hourglass-end", "fas fa-hourglass-half", "fas fa-hourglass-start", "fas fa-stopwatch"],
};
jQuery(document).ready(function($) {
$('#fip').fontIconPicker({
source: fnt_icons_categorized,
}); // Load with default options
});
图标来自https://gist.github.com/migliori/60154172ba0eea70e3c0dd4c3b5d82d0的5.0.8字体 我使用的是此特定版本,因为图标已分类
代码很简单,所以我想我遗漏了一些明显的东西,但是找不到它。