font AweSome not working on mvc3 solution?
I have a solution with multiple mvc3 project and each one has it's own area(Accounting, Treasury, Inventory, Trading, ClickMIS And Contract).Contract Project is the library for solution. now i want to add font Awesome to my solution, then i add a font Folder to Contract Project. The Addressing in css file for font is : @font-face { font-family: 'FontAwesome'; src: url('/Common/fonts/fontawesome-webfont.eot'); src: url('/Common/fonts/fontawesome-webfont.eot?#iefix'), format('embedded- opentype'); src: url('/Common/fonts/fontawesome-webfont.woff') format('woff'); src: url('/Common/fonts/fontawesome-webfont.ttf') format('truetype'); src: url('/Common/fonts/fontawesome-webfont.svg?#fontawesomeregular') format('svg'); font-weight: normal; font-style: normal; }
but no response i got from the solution. always show me GET /Common/fonts/fontawesomewebfont.svg 404 (Not Found)
i use content on buildaction for my font. can anyone help me on this?
download here and add to your project file. FontAwesome
fonts
@font-face{
font-family:FontAwesome;
src:url(fonts/fontawesome-webfont.eot);
src:url(fonts/fontawesome-webfont.eot) format("embedded-opentype"),
url(fonts/fontawesome-webfont.woff) format("woff"),
url(fonts/fontawesome-webfont.ttf) format("truetype"),
url(fonts/fontawesome-webfont.svg?#fontawesomeregular) format("svg");
font-weight:normal;
font-style:normal;
font-stretch:normal
}
链接地址: http://www.djcxy.com/p/60802.html
上一篇: CSS导入字体问题