简体   繁体   English

背景图像不显示在身体上

[英]Background image not displaying on body

My CSS is not working I need it to be fixed does not display and don't know why it has done this I'm new to coding HTML and CSS and want the image to go full screen.我的 CSS 不工作我需要修复它不显示,不知道它为什么这样做我是编码 HTML 和 CSS 的新手,并希望图像全屏显示。 I have tried everything and still not working.我已经尝试了一切,但仍然无法正常工作。

body {

   background-image: "/folder/photo.gif";

}

Hope someone can help me out and find the answer.希望有人可以帮助我并找到答案。

body {background-image: url("/folder/photo.gif")}
body {

   background-image: url("/folder/photo.gif") no-repeat center center fixed;

}

This will work这将工作

try this code:试试这个代码:

body {
   background-image: url("/folder/photo.gif");
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM