下列哪项是正确的线性渐变的写法?( )
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: 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: 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%)
- 【单选题】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)
- (网站).box{background:red;*background:blue;}在IE6.0浏览器中.box的背景色是()? A: blue B: red C: green D: black
- 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);
- Indigo prints are made of homespun fabrics with blue designs on a ___________ background or white designs on a ___________ background. A: yellow; green B: white; blue C: red; black D: red; brown