Recently, I set up an ASP.NET project on my office computer and synced it with Google Drive, allowing me to access the same project from my home computer.
Both computers have identical resources available.
However, when I tried to run the project on my home computer, the background image on the webpage failed to display.
Below is the CSS code snippet I used to set the background image:
body {
background-image: url('/Images/blue.jpg');
}
I also attempted the following alternatives:
body {
background-image: url('../Images/blue.jpg');
background-image: url('~/Images/blue.jpg');
}
Despite trying different approaches, I am still puzzled by the issues that arise when running ASP.NET projects across multiple devices.