Ruby on Rails Bootstrap Glyphicons not working

后端 未结 17 2056
Happy的楠姐
Happy的楠姐 2020-12-02 07:43

I have added bootstrap to my site. Here is the structure I am using. (I cannot whatsoever remove the bootstrap.css file since it I modified it to my liking).



        
17条回答
  •  隐瞒了意图╮
    2020-12-02 08:20

    I tried with suggested solution and it did not work for me, here is a generic solution that helps you troubleshoot any problem related to this you might have.

    Here is the resulting font face definition with bootstrap-sass:

    @font-face {
      font-family: 'Glyphicons Halflings';
      src: asset-url('bootstrap/fonts/glyphicons-halflings-regular.eot');
      src:
        asset-url('bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
        asset-url('bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff'),
        asset-url('bootstrap/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
        asset-url('bootstrap/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
    }
    

提交回复
热议问题