• 2022-06-18
    背景图默认重复显示,即background-repeat: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; }