search

Home  >  Q&A  >  body text

The page suddenly cannot pull css or bootstrap

So I'm developing a page, I did part of it yesterday and it worked great, and today I went ahead and did the rest and everything worked great. When I try to open it as a normal html page, the CSS or BOOTSTRAP does not work, only the page text is displayed, but when I open VS CODE and run the site through the "Live Server" extension, it works fine? ? ?

I didn't change the path to anything, this is my link in head:

<link href="/appdata/main.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/appdata/radnik.css" /> 
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">

The path to the page I am working on is:

C:\Users\MyPC\FixITSite\gradjevina\moler\marko-nikolic.html

I have tried changing the path, placing a dot "." in front of the "/" like this:

<link href="./appdata/main.min.css" rel="stylesheet" />
<link rel="stylesheet" href="./appdata/radnik.css" />

Also tried to put two dots, still no success, one dot opens the "moler" folder, and two dots open the "gradjevina" folder

P粉771233336P粉771233336228 days ago972

reply all(1)I'll reply

  • P粉187677012

    P粉1876770122024-04-07 19:35:47

    Remove the first slash "/"

    
    

    reply
    0
  • Cancelreply