2
嘗試在不同主機(somee.com,azure,localhost)上發佈網站。網站在asp.net的MVC 4將網站發佈到Azure後自定義css字體顯示
在本地主機和somee.com顯示: https://dl.dropboxusercontent.com/u/58930284/testing/font_local.png
在Azure的網站:
https://dl.dropboxusercontent.com/u/58930284/testing/font_azure.png
CSS:
@font-face
{
font-family: 'Font name';
src: url("fonts/Font name.eot");
src: url("fonts/Font name.eot?#iefix") format("embedded-opentype"),
url("fonts/Font name.woff") format("woff"),
url("fonts/Font name.ttf") format("truetype"),
url("fonts/Font name.svg") format("svg");
font-weight: normal;
font-style: normal;
}