• 2022-06-01
    在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;
  • B

    内容

    • 0

      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

    • 1

      下列哪个是( )设置背景图片(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);

    • 2

      2.给input控件应用以下CSS样式:background:url(images/1.jpg) no-repeat 5px center #FFF;”代码的含义是( )

    • 3

      设置背景颜色为 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;

    • 4

      #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