• 周一. 5月 27th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

如何使用带有bootstrap3字形图标的Flask?

[db:作者]

3月 7, 2023

我试图建立一个网站使用烧瓶和bootstrap3。但是我发现glyphicons’s official website写着Copy over all the font files to a /fonts directory near your CSS.,但是当我把字体目录放在css文件的同一目录下之后,图标仍然没有出现。在

enter image description here

Tags:

theto目录烧瓶网站fontswebsitefilesalloverbootstrap3fontcopyofficialglyphicons2条回答网友

1楼 ·

编辑于 2023-03-07 00:10:39

如果有其他人遇到这种情况,并且正在使用引导程序的SASS/SCSS版本,而接受的答案没有帮助。。。_glyphicons.scss文件使用@at-root,它只在sass>=3.3.0中工作。如果使用的是较低版本,字体将无法加载。在

网友

2楼 ·

编辑于 2023-03-07 00:10:39

尝试将fonts/目录放在包含css的文件夹旁边。例如,css/将与fonts/在同一个文件夹中。在

示例:

static/
  css/
    bootstrap-glyphicons.css
    ...
  fonts/
    glyphiconshalflings-regular.eot
    ...
  js/

《如何使用带有bootstrap3字形图标的Flask?》有4个想法
  1. of course like your website but you have to check the spelling on several of your posts A number of them are rife with spelling issues and I in finding it very troublesome to inform the reality on the other hand I will certainly come back again

  2. Wow, awesome weblog format! How lengthy have you ever been running a blog for?

    you made blogging glance easy. The whole look of your website
    is magnificent, as well as the content! You can see similar here e-commerce

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注