This is not working:
But this is working:
In my scenario, I just cannot work with absolute path. I have to use relative path.
解决方案
"../assets/images/image.jpg" -This means
'../' go up one directory from where I am now
find the 'assets/' folder
find the 'images' folder
find the 'image.jpg' file.
That relative link will only work if your page is in a subfolder in
If the location of your page really is
"localhost/asdf/asdf/asdf/asdf/index.php"
(which seems ridiculous) to get to the assets folder relatively you would have to go all the way to the root.
'../../../../abc/deh/geh/assets/images/image.jpg;
Alternatively you could use a base tag in your head tag to make the URL in the actual src attribute more friendly.