HTML not loading CSS file

前端 未结 25 1337
执念已碎
执念已碎 2020-12-01 13:55

I am completely stumped as to why this doesn\'t work. It seems the HTML file can\'t load the CSS for some reason, even though both are in the same directory. Any idea what m

25条回答
  •  情深已故
    2020-12-01 14:36

    Not sure this is valuable, but I will leave this here for others. Making sure that "Anonymous Authentication" was set to "Enabled" loaded my CSS file correctly.

    To do that in Visual Studio 2019:

    1. Select your solution's name, right click, and hit "properties"
    2. Navigate to the "Properties" frame, typically in the bottom right corner
    3. Ensure that "Anonymous authentication" is set to "Enabled" as shown below

提交回复
热议问题