【单选题】background-image: linear-gradient(to right, red , yellow)与下面()效果一样。
A. background-image: linear-gradient(0deg, red , yellow) B. background-image: linear-gradient(90deg, red , yellow) C. background-image: linear-gradient(180deg, red , yellow) D. background-image: linear-gradient(-90deg, red , yellow)
A. background-image: linear-gradient(0deg, red , yellow) B. background-image: linear-gradient(90deg, red , yellow) C. background-image: linear-gradient(180deg, red , yellow) D. background-image: linear-gradient(-90deg, red , yellow)
举一反三
- 下列哪项是正确的线性渐变的写法?( ) 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);
- CSS3提供了背景渐变色的属性,下面表示正确的渐变色写法是?( ) A: background-size:linear-gradient(green,red); B: background-image:linear-gradient(green,red); C: background-color:inherit; D: background-position:linear-gradient(green,red);
- 在CSS3中,用以下那个属性可以设计线性渐变。 A: background-image:linear B: background-image:linear-gradient(参数值) C: background-image:radial-gradient(参数值) D: background-image:url();
- 对于线性渐变的方向,设置左上到右下,起始颜色为红色,终止颜色为蓝色,正确的格式为?( ) A: linear-gradient(-45deg, red 0%, blue 100%) B: linear-gradient(45deg, red 0%, blue 100%) C: linear-gradient(top left, red 0%, blue 100%) D: linear-gradient(0deg, red 0%, blue 100%)
- 以下CSS属性中,哪一个用于设置背景图像? A: background-img; B: background; C: background-image; D: image;