【问题标题】:@font-face not working on other computers - with correct file links@font-face 不能在其他计算机上工作 - 具有正确的文件链接
【发布时间】:2017-03-26 04:54:43
【问题描述】:

我使用 Font Squirrel Webfont Generator 创建了字体堆栈,并且 URLS 似乎工作得很好(我使用了整个地址来确定。)在没有安装字体的计算机上仍然看不到 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 */
}

【问题讨论】:

    标签: css fonts font-face webfonts


    【解决方案1】:

    尝试去掉最后一行末尾的逗号(或用分号代替):

    url('http://s471850234.onlinehome.us/wp-content/themes/xstore-child/fonts/NorthernSoul-Caps.ttf')  format('truetype'), /* Safari, Android, iOS */
    

    【讨论】:

      猜你喜欢
      • 2012-03-27
      • 1970-01-01
      • 2016-05-31
      • 1970-01-01
      • 1970-01-01
      • 2013-03-07
      • 1970-01-01
      • 2013-07-08
      • 1970-01-01
      相关资源
      最近更新 更多