效果截图: 实现代: 复制代代码如下: <頭> <br>.linear{ <br>width:100%; <br>高さ:600ピクセル; <br>フィルター: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=##15A216,endColorStr=#fafafa); /*IE*/ <br>background:-moz-linear-gradient(top,#15A216,#fafafa);/*火狐*/ <br>background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#15A216), to(#fafafa));/*谷歌*/ <br>background-image: -webkit-gradient(linear,leftbottom,lefttop,color-start(0, #15A216) ,color-stop(1, #fafafa));/* Safari & Chrome*/ <br>filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa') ; /*IE6 および IE7*/ <br>-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa')"; /* IE8 */ <br>} <br>