I can't get the image to work without the entire file root
P粉608647033
P粉608647033 2024-04-03 23:27:05
0
1
397

hope this helps. I've written a lot of pages for a website before (simulated just for my own practice), but for some reason, with my new (old but running Windows 10) laptop, the images wouldn't load without using the entire file path. For example, the C:\Users\theap\OneDrive\Desktop\images/dogs.jpg image file is labeled as an image on my desktop. All images end with .jpg so I enter but only alt shows up in alt view in the browser. I've never been in this situation before. I tried all different images, extensions and paths. The only way they load is by using a background image in css: ../images/dogs.jpg Using this path will not work in html pages. I'm taking a web development course and sent them my code and screenshots of everything I've tried, but they don't seem too interested in helping. I've been trying to fix this problem for almost a month now and gas and matches seem to be my next options. Does anyone have a solution? please? anyone there? ? ?

I've tried everything I can think of and all YouTube videos and Google searches just show how to upload an image rather than solving this specific problem. I'm wondering if this is a setting on my computer?

P粉608647033
P粉608647033

reply all(1)
P粉808697471

Unable to load because you entered the wrong address... I tried this and when I enter the address to my system the image does not show up but when I enter the address to my local browser the image does show up.

I guess this address is wrong:

c:\Users\theap\OneDrive\Desktop\images/dogs.jpg

This address is correct:

https://localhost/path/to/myimage
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!