无法在网页上的CSS中设置背景图片

时间:2019-12-21 20:37:15

标签: html css web

我可以在本地网站上看到背景,但是当它上传到ftp服务器时...丢失了。我看不到背景。

body {
background: url("../images/coffee-bg.jpg");
background-size: cover;}

1 个答案:

答案 0 :(得分:0)

更改图像路径,路径不正确。尝试添加ftp ip wt