ASP.NET MVC4 Bundling with Twitter Bootstrap

后端 未结 4 1244
遇见更好的自我
遇见更好的自我 2020-12-02 10:21

I\'m trying to use the new bundling feature in MVC 4 with Twitter bootstrap and it seems to me like the paths to the glyphicons png-files int the css get\'s messed up in som

4条回答
  •  被撕碎了的回忆
    2020-12-02 11:16

    What you can do is you can go to the customize page and change @iconSpritePath and @iconWhiteSpritePath in the Sprites section and, of course, download the new style.

    I've put my images in the folder Content/Images folder and I've changed the path in:

    • /Content/Images/glyphicons-halflings.png
    • /Content/Images/glyphicons-halflings-white.png

    Another alternative is to download all the LESS files from github, change the same variables in the variables.less file and recompile the bootrap.less file with a tool like SimpLESS.

提交回复
热议问题