在CSS3中,用以下那个属性可以设计线性渐变。
A: background-image:linear
B: background-image:linear-gradient(参数值)
C: background-image:radial-gradient(参数值)
D: background-image:url();
A: background-image:linear
B: background-image:linear-gradient(参数值)
C: background-image:radial-gradient(参数值)
D: background-image:url();
举一反三
- 以下CSS属性中,哪一个用于设置背景图像? A: background-img; B: background; C: background-image; D: image;
- 以下( )代码可以实现背景平铺效果 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;}
- 下列哪项是正确的线性渐变的写法?( ) A: background:linear-gradient(red,blue); B: background:linear-gradient(45deg,red,blue); C: background-image:linear-gradient(red,blue); D: background-image:linear-gradient(45deg,red,blue);
- 下列设置图片背景的语法正确的是( )。 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)}
- background-image属性有哪2个值? A: background-image B: url C: none D: background