(网站)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: 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: background:url(a1.jpg)repeat-x; B: background-color:repeat-x; C: background:url(a1.jpg)repeat-y; D: background:repeat;
- ( )属性可以设置背景颜色。 A: bg B: background C: background-color D: background-image
- 设置背景颜色为 green, 背景图片垂直居中显示, 背景图片充 满整个区域,但是背景图片不能变形 , 图片只出现一次,以下书 写正确的是(): A: background:url("../img/img1.jpg") no-repeat center/cover green; B: background:url("../img/img1.jpg") repeat center/cover green; C: url("../img/img1.jpg") no-repeat center/100% green; D: url("../img/img1.jpg") no-repeat center/100% 100% green;
- 下列哪个是( )设置背景图片(bg.gif)水平方向平铺? A: background:url(bg.gif) repeat-x; B: background:url(bg.gif) repeat-y; C: background:url(bg.gif) no-repeat; D: background:url(bg.gif);
- 背景颜色的写法background:#ccc等同于background-color:#ccc()