我正在尝试为我正在进行的项目复制此站点,但 HTML 无法识别编程中的 CSS,或其他一些类似问题。这就是我的目标:
https://www.personalfinanceclub.com/the-cost-of-raising-a-child/
这就是我所拥有的:
https://sunnyparks.github.io/personal-finance-club/FinalProject.html
任何帮助将不胜感激。
Webfonts 已被 CORS 策略阻止。
Apache 的 CORS 配置
要在 Apache 中启用 CORS,请将以下内容添加到您的
.htaccess
文件中。
<FilesMatch ".(eot|otf|ttf|woff|woff2)">
Header always set Access-Control-Allow-Origin "*"
</FilesMatch>