样式表需要位于字体和HTML文件之间的绝对路径上:
HTML-File: domain.tld/index.html
css-File : domain.tld/assets/stylesheets/stylesheet.css
FONT-File: domain.tld/assets/stylesheets/font/pfdindisplaypro-reg-webfont.woff
然后将样式表更新为:
尝试将包含字体的文件夹放在包含css文件的文件夹中!
@font-face {
font-family: 'regular';
src: url('font/pfdindisplaypro-reg-webfont.eot?#iefix') format('embedded-opentype'),url('font/pfdindisplaypro-reg-webfont.woff') format('woff'),url('font/pfdindisplaypro-reg-webfont.ttf') format('truetype'),url('font/pfdindisplaypro-reg-webfont.svg#svgFontName') format('svg');}