效果截图: 实现代码: 复制代码 代码如下: <br>.linear{ <br>lebar:100%; <br>tinggi:600px; <br>PENAPIS: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=##15A216,endColorStr=#fafafa); /*IE*/ <br>latar belakang:-moz-linear-gradient(top,#15A216,#fafafa);/*火狐*/ <br>latar belakang:-webkit-gradient(linear, 0% 0%, 0% 100%,daripada(#15A216), kepada(#fafafa));/*谷歌*/ <br>imej latar belakang: -webkit-gradient(linear,kiri bawah,kiri atas,warna-mula(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>