下列设置图片背景的语法正确的是( )。
A: p{background-image:url(image/flower.jpg)}
B: p{background-image: (image/flower.jpg)}
C: p{background-image:src(image/flower.jpg)}
D: p{background-image:href(image/flower.jpg)}
A: p{background-image:url(image/flower.jpg)}
B: p{background-image: (image/flower.jpg)}
C: p{background-image:src(image/flower.jpg)}
D: p{background-image:href(image/flower.jpg)}
举一反三
- 以下( )代码可以实现背景平铺效果 A: div{background-image:url(image/bg.gif);} B: div{background-image:url(image/bg.gif) repeat-x;} C: div{background-image:url(image/bg.gif) repeat-y;} D: div{background-image:url(image/bg.gif) no-repeat;}
- 以下CSS属性中,哪一个用于设置背景图像? A: background-img; B: background; C: background-image; D: image;
- The central image of this poem is “honey suckle,” same as the typical flower image in traditional English poems.
- ()属性可以设置背景图像。 A: background-image B: background-images C: image D: images
- 设置背景图应该是()属性 A: background-image B: background-color C: image D: img