如何安装
步骤一:文件上传
将zip文件内容上传至您服务器的公共目录。例如:
步骤二:引入CSS
将以下内容添加到您的样式表中。
步骤三:调整路径
请确保调整代码中的路径,以匹配您服务器上的相对路径。
在此示例中,您需要在所有定义前添加
@font-face { font-family: 'SpartanMB-Bold'; src: url('/css/webfont/SpartanMB-Bold.eot?#iefix') format('embedded-opentype'), url('/css/webfont/SpartanMB-Bold.otf') format('opentype'), url('/css/webfont/SpartanMB-Bold.woff') format('woff'), url('/css/webfont/SpartanMB-Bold.ttf') format('truetype'), url('/css/webfont/SpartanMB-Bold.svg#SpartanMB-Bold') format('svg'); font-weight: normal; font-style: normal; }