若背景图片比容器小,但只想要显示一张图片,且控制其位置在左侧居中显示,该如何设置代码?( )
A: .box{ background-repeat:repeat; background-position:center left; }
B: .box{ background-repeat:repeat; background-position:left center; }
C: .box{ background-repeat:no-repeat; background-position:center left; }
D: .box{ background-repeat:no-repeat; background-position:left center; }
A: .box{ background-repeat:repeat; background-position:center left; }
B: .box{ background-repeat:repeat; background-position:left center; }
C: .box{ background-repeat:no-repeat; background-position:center left; }
D: .box{ background-repeat:no-repeat; background-position:left center; }
举一反三
- 设置背景图像位置的代码是()。 A: background-color:#b4f4fd; B: background-image:url(images/bg4.jpg); C: background-repeat:repeat; D: background-position:center bottom;
- 设置背景颜色为 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;
- In css, the background picture needs to be located in the lower left corner of the box and should be written as: ( ) A: background-image:left foot B: background-image:left bottom C: background-position:left foot D: background-position:left bottom
- 让一个盒子的背景图片只横向平铺() A: background:url(a1.jpg)repeat-x; B: background-color:repeat-x; C: background:url(a1.jpg)repeat-y; D: background:repeat;
- 需要背景图片水平方向平铺显示,用哪个样式? A: background-repeat:repeat B: background-repeat:no-repeat C: background-repeat:repeat-x D: background-repeat:repeat-y