为什么没有使用加载页面初始化字形图标

时间:2016-08-03 12:04:42

标签: css twitter-bootstrap symfony fonts

我迷上了bootstrap-datetimepicker,当我点击INPUT时,我看不到glyphicon图标。一段时间后加载字体。 如何在页面加载时加载字体?

bootstrap-datetimepicker:https://eonasdan.github.io/bootstrap-datetimepicker/

字体通过config symfony2连接:

    bootstrap_fonts_woff:
        inputs:
            - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/fonts/glyphicons-halflings-regular.woff'
        output: fonts/glyphicons-halflings-regular.woff
    bootstrap_fonts_woff2:
        inputs:
            - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2'
        output: fonts/glyphicons-halflings-regular.woff2
    bootstrap_fonts_ttf:
        inputs:
            - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf'
        output: fonts/glyphicons-halflings-regular.ttf
    bootstrap_fonts_svg:
        inputs:
            - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/fonts/glyphicons-halflings-regular.svg'
        output: fonts/glyphicons-halflings-regular.svg

谢谢!

0 个答案:

没有答案