gpt4 book ai didi

c# - MVC5 CSS/Lay-Out 在一台 PC 上工作,而不是另一台

转载 作者:行者123 更新时间:2023-11-28 02:24:54 25 4
gpt4 key购买 nike

它的外观应该如何(并且确实在一台机器上看起来如何):

How it's supposed to look (and does look on one machine)

然后,当移动到另一台计算机时,这是结果。好像没有渲染布局和CSS,但是在断点通过它时似乎会渲染:

Then, when moved to another computer, this is the result. As if the layout and CSS is not rendered, but it seems to render when going through it with breakpoints

两台电脑都运行带有 .NET Framework 4.5.2 的 Visual Studio 2017,并且两台电脑上的文件完全相同。我应该寻求解决此问题的任何想法都很少。

最佳答案

当我遇到这个问题时,是 IIS 的问题...在第二台计算机上,打开 Windows 功能并确保选中以下选项:

Windows Features

更正:这是允许 IIS 提供静态内容的问题。我不应该欺负 IIS 并不必要地将事情归咎于它。

关于c# - MVC5 CSS/Lay-Out 在一台 PC 上工作,而不是另一台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48011408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com