开发者

CSS background image

I have

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

in my css.

.yellow works fine, but .green. does not work. What's wrong?


You're missing the "url" bit.

background-image:('http://i42.tinypic.com/xzup2.jpg')

should be:

background-image: url('http://i42.tinypic.com/xzup2.jpg');

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜