简体   繁体   English

我网站的 CSS 在 localhost 和 Amazon AWS 服务器上看起来不同

[英]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.

相关问题 我的网站在Firefox中的浏览器与Chrome浏览器不同 - My website looks different in Firefox from Chrome 为什么我的引导网格在stackoverflow和localhost上看起来不同? - Why does my bootstrap grid looks different on stackoverflow and on localhost? Heroku弄乱了我的CSS位置。 在localhost上看起来不错,在Heroku上看起来不好 - Heroku is messing up my CSS positioning. Looks good on localhost, looks bad on Heroku 为什么我的CSS看起来与你的CSS不同? - Why my CSS looks different than your CSS? 为什么我的网站在mozilla firefox和chrome上看起来不同? - Why does my website looks different on mozilla firefox and chrome? 我的 HTML 网站在其他用户设备上看起来完全不同 - My HTML website looks completely different on other users devices 在 Iphone 12 上查看时,我的网站字体看起来不同 - Font of my website looks different when viewed on an Iphone 12 我的网站在网上看起来不同(字体丢失,对象的位置不同) - My website looks different (fonts are missing and objects are positioned differently) online 网站在不同的浏览器中看起来有所不同 - Website looks different in different browsers 我的网站在本地主机上看起来很完美,但在线上传后看起来完全不同? - My website looks perfect on local host, but after uploading it online it looks completely different?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM