CSS背景图像
我有 在我的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
.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%;
}