我正在尝试向我的网站添加字体,并在下面添加了我的CSS。在使用chrome时,我在ttf和woff字体上都收到了404消息。它确实在浏览器中显示字体。当我使用iphone测试时,字体不显示。任何人都可以建议我哪里出错了?
@font-face{
font-family:exo;src:url("/public/fonts/Exo-Regular.eot");
src:url("/public/fonts/Exo-Regular.eot?#iefix") format("embedded-opentype"),
url("/public/fonts/Exo-Regular.woff") format("woff"),
url("/public/fonts/Exo-Regular.ttf") format("truetype"),
url("/public/fonts/Exo-Regular.svg#Exo-Regular") format("svg")
}
@font-face{
font-family:exo-bold;
src:url("/public/fonts/Exo-Bold.eot");
src:url("/public/fonts/Exo-Bold.eot?#iefix") format("embedded-opentype"),
url("/public/fonts/Exo-Bold.woff") format("woff"),
url("/public/fonts/Exo-Bold.ttf") format("truetype"),
url("/public/fonts/Exo-Bold.svg#Exo-Bold") format("svg")}