我使用Font Squirrel Webfont Generator创建了字体堆栈,并且URL似乎工作正常(我使用整个地址确定。)仍然没有在没有安装字体的计算机上看到webfont。所以不是通常的问题......任何想法?非常感谢!
@font-face { font-family: 'NorthernSoul-Caps';
src: url('http://s471850234.onlinehome.us/wp-content/themes/xstore-child/fonts/NorthernSoul-Caps.eot'); /* IE9 Compat Modes */
src: url('http://s471850234.onlinehome.us/wp-content/themes/xstore-child/fonts/NorthernSoul-Caps.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('http://s471850234.onlinehome.us/wp-content/themes/xstore-child/fonts/NorthernSoul-Caps.woff2') format('woff2'), /* Super Modern Browsers */
url('http://s471850234.onlinehome.us/wp-content/themes/xstore-child/fonts/NorthernSoul-Caps.woff') format('woff'), /* Pretty Modern Browsers */
url('http://s471850234.onlinehome.us/wp-content/themes/xstore-child/fonts/NorthernSoul-Caps.ttf') format('truetype'), /* Safari, Android, iOS */
}
答案 0 :(得分:0)
尝试删除最后一行末尾的昏迷(或用分号替换):
url('http://s471850234.onlinehome.us/wp-content/themes/xstore-child/fonts/NorthernSoul-Caps.ttf') format('truetype'), /* Safari, Android, iOS */