background-image属性有哪2个值?
A: background-image
B: url
C: none
D: background
A: background-image
B: url
C: none
D: background
举一反三
- 以下CSS属性中,哪一个用于设置背景图像? A: background-img; B: background; C: background-image; D: image;
- (网站)background-color:#ccc;background-image:url(bg.png);background-repeat:no-repeat;background-position:-100pxcenter;以上样式的缩写正确的是?() A: background:#ccc,url(bg.png)no-repeat,-100pxcenter; B: background:#cccurl(bg.png)no-repeat-100pxcenter; C: background:#ccc;background-image:url(bg.png)no-repeat-100pxcenter; D: background-color:#ccc;background-image:url(bg.png)no-repeat-100pxcenter;
- 以下( )代码可以实现背景平铺效果 A: div{background-image:url(image/bg.gif);} B: div{background-image:url(image/bg.gif) repeat-x;} C: div{background-image:url(image/bg.gif) repeat-y;} D: div{background-image:url(image/bg.gif) no-repeat;}
- 下列设置图片背景的语法正确的是( )。 A: p{background-image:url(image/flower.jpg)} B: p{background-image: (image/flower.jpg)} C: p{background-image:src(image/flower.jpg)} D: p{background-image:href(image/flower.jpg)}
- ( )属性可以设置背景颜色。 A: bg B: background C: background-color D: background-image