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
内容
- 0
背景图默认重复显示,即background-repeat:repeat; ( )
- 1
要实现背景图片在水平方向的平铺,应该设置为什么? A: background-repeat:repeat B: background-repeat:repeat-x C: background-repeat:repeat-y D: background-repeat:no-repeat
- 2
以下可以实现背景图片不重复的样式表是( )。 A: background-repeat:repeat-x; B: background-repeat:repeat-y; C: background-repeat:repeat; D: background-repeat:no-repeat;
- 3
(网站)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;
- 4
在css样式表中,下列设置页面背景图片的说法正确的是( A: background:src(images/news.jpg) bottom repeat-y; B: background:url(images/news.jpg)left bottom no-repeat C: 999999; D: background:url(images/news.jpg)left bottom repeat_y; E: background:link(images/news.jpg)left bottom no-repeat;