简体   繁体   中英

Why are most of my CSS files not loading when using an ASP.NET Core app

Only some of my styles are loading and I'm not sure why. The stylesheet must work if some of my styling is working, but why aren't all of them loading? I am using ASP.NET Core 3.1.

I have the following in every HTML file I will be using.

<link rel="stylesheet" href="~/css/style.css">

I don't think that it's the file path because some of the styles show, just not all.

I figured it out. Sometimes you have to do a shift + reload to update the css styles.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM