举一反三
- 同时设定背景颜色和背景图像(background-repeat: repeat;)后,如何显示?
- 如果想让一幅背景图片在水平方向上重复显示,则可使用background-repeat属性的()值实现。 A: repeat-x B: repeat C: repeat-y D: no-repeat
- 要实现背景图片在水平方向的平铺,应该设置为什么? A: background-repeat:repeat B: background-repeat:repeat-x C: background-repeat:repeat-y D: background-repeat:no-repeat
- 想让背景图像完全填充空间应该用background-repeat:repeat;。
- 以下可以实现背景图片不重复的样式表是( )。 A: background-repeat:repeat-x; B: background-repeat:repeat-y; C: background-repeat:repeat; D: background-repeat:no-repeat;
内容
- 0
#lujing{ background-image:url(images/navbg.gif); background-repeat: ; } 上面代码中,设置id为lujing的页面路径背景图像为images/navbg.gif,将background-repeat:的属性值设置为(),可以使背景图像水平重复。 A: repeat-x B: repeat-y C: repeat D: no- repeat
- 1
需要背景图片水平方向平铺显示,用哪个样式? A: background-repeat:repeat B: background-repeat:no-repeat C: background-repeat:repeat-x D: background-repeat:repeat-y
- 2
background-repeat的默认属性值为 A: repeat B: repeat-x C: repeat-y D: no-repeat
- 3
背景重复属性也称为背景图像平铺属性,用来设定对象的背景图像重复以及如何铺排。语法: background-repeat:取值;取值可以为: A: repeat B: no-repeat C: repeat-x D: repeat-y
- 4
若背景图片比容器小,但只想要显示一张图片,且控制其位置在左侧居中显示,该如何设置代码?( ) 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; }