页面样式被忽略

huangapple go评论46阅读模式
英文:

Page Styling Is ignored

问题

以下是已翻译的内容:

"I was asked to setup a test environment for a web app. I have set everything up on Windows Server 2022 in IIS that I can think of. Logging in worked fine. The landing page after logging in, seems to disregard all CSS styling. It is a Bootstrap site. This same code works in production.

Is there some other setting in IIS I am missing?"

"我被要求为一个Web应用程序设置测试环境。我已经在Windows Server 2022上的IIS上设置了我所能想到的一切。登录正常工作。但是,在登录后的登录页面上,似乎忽略了所有的CSS样式。这是一个Bootstrap站点。相同的代码在生产环境中可以正常工作。

我是否漏掉了IIS中的其他设置?"

"The errors I am seeing in the Console are mostly

'Failed to load resource: net::ERR_CONNECTION_TIMED_OUT'

could this be caused by a slow server? Its a micro server so it does not have a lot of 'meat' as they say."

"在控制台中我看到的错误主要是

'Failed to load resource: net::ERR_CONNECTION_TIMED_OUT'

这可能是由服务器速度慢引起的吗?这是一台微型服务器,所以它没有太多的'性能',正如他们所说的。"

英文:

I was asked to setup a test environment for a web app. I have set everything up on Windows Server 2022 in IIS that I can think of. Logging in worked fine. The landing page after logging in, seems to disregard all CSS styling. It is a Bootstrap site. This same code works in production.

Is there some other setting in IIS I am missing?

The errors I am seeing in the Console are mostly

'Failed to load resource: net::ERR_CONNECTION_TIMED_OUT'

could this be caused by a slow server? Its a micro server so it does not have a lot of "meat" as they say.

答案1

得分: 0

发现了问题。

在我们尝试为我们的 Web 应用程序设置新的测试环境时出现了这个问题。该应用程序具有 SSL 证书。

我没有意识到的是,一些 JavaScript 和 CSS 文件的调用是通过 HTTPS。这并不好!似乎什么都无法正常工作。为新的测试站点为该服务器添加 SSL 证书纠正了这个问题。

英文:

Found the problem.

This issue came up when we were trying to set up a new test environment for our web app. That app has an SSL certificate.

What i failed to realize, some of the javascript and css files being called were to HTTPS. No bueno! nothing seemed to work. Adding an SSL certificate to that server for the new test site corrected the issue.

huangapple
  • 本文由 发表于 2023年2月24日 05:20:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75550429.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定