Why don't images show up in VS Code Live Server?
P粉710454910
P粉710454910 2023-07-19 15:47:02
0
1
410

I have a problem with Live Server in VS Code.

When I use the logo on the navigation bar in my HTML code, it works fine when opening the file without using Live Server. But when I try to open it using Live Server, it doesn't show up. .

  1. This is my HTML code
      World Web    
  1. This is the output when opened in Chrome without using Live Server.

  2. This is the output when opened using Live Server.

When using Live Server to open a file, the logo in my navigation bar cannot be previewed. However, when I open the file without using Live Server, it works fine.

P粉710454910
P粉710454910

reply all (1)
P粉238433862

Do not use any spaces between file names or folders.

logo

Either use dark_logo.svg or dark-logo.svg, the same is true for World Web.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!