[英]The CSS of my website looks different on localhost and on Amazon AWS servers
I've deployed my website to Amazon AWS server, but CSS styles looks differently -- the font is bigger and bolder than on the localhost, the same about buttons.我已将我的网站部署到 Amazon AWS 服务器,但 CSS 样式看起来有所不同——字体比本地主机上的更大更粗,按钮也是如此。
Did you have similar issue?你有类似的问题吗? There are loaded the same files, fonts are loaded from Google.
有加载相同的文件,字体是从谷歌加载的。
Thanks谢谢
The problem was in used fonts - as I loaded them from Google, the link was like http://... and the font was not loaded.问题在于使用的字体 - 当我从谷歌加载它们时,链接就像http://...并且字体没有加载。
After changing the protocol to https:// everything is working well.将协议更改为https:// 后一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.