我的背景图片没有出现在我的网站上

My background-image does not show up on my website

我想设置 background-image,但它没有显示在我的网站上。我尝试设置 display: block; 但没有成功。

body {
    background-image: url("images/other/background.png");
    margin: 0;
}

你可能走错了路。如果您的 CSS 文件在 /css 中并且您的图像文件在 /image 中,您应该使用

background-image: url("/images/other/background.png");