萬盛學電腦網

 萬盛學電腦網 >> 網頁制作 >> DivCSS教程 >> CSS設置DIV背景色漸變顯示

CSS設置DIV背景色漸變顯示

 <style type="text/css"> 

.linear{ 
	width:100%; 
	height:600px; 
	FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#b8c4cb,
endColorStr=#f6f6f8); /*IE*/ 
	background:-moz-linear-gradient(top,#b8c4cb,#f6f6f8);/*火狐*/ 
	background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#b8c4cb), to(#f6f6f8));/*谷歌*/ 
} 
</style> 

 <body>
	<div class="linear"></div>
 </body>
copyright © 萬盛學電腦網 all rights reserved