Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CSS背景图像_Css_Html - Fatal编程技术网

CSS背景图像

CSS背景图像,css,html,Css,Html,我有 在我的css中 .yellow工作正常,但.green。不起作用。怎么了?您缺少“url”位 背景图像:('http://i42.tinypic.com/xzup2.jpg) 应该是: 背景图像:url('http://i42.tinypic.com/xzup2.jpg');您缺少“url”位 背景图像:('http://i42.tinypic.com/xzup2.jpg) 应该是: 背景图像:url('http://i42.tinypic.com/xzup2.jpg'); .green

我有

在我的css中

.yellow
工作正常,但
.green
。不起作用。怎么了?

您缺少“url”位

背景图像:('http://i42.tinypic.com/xzup2.jpg)

应该是:

背景图像:url('http://i42.tinypic.com/xzup2.jpg');

您缺少“url”位

背景图像:('http://i42.tinypic.com/xzup2.jpg)

应该是:

背景图像:url('http://i42.tinypic.com/xzup2.jpg');

.green {
background-image:('http://i42.tinypic.com/xzup2.jpg')
background-repeat: no-repeat;
height:430px;
width:100%;
}
.yellow {
background-image: url('/images/yellowlight.png');
background-repeat: no-repeat;
height:430px;
width:100%;
}