<style> body{background:url(a.jpg) no-repeat top center;} </style>
还有一种,根据分辩率来载入背景 <script language="javascript"> if((screen.width==1024)&&(screen.height==768)) { document.write("<body background='b.jpg'>"); } if((screen.width==1152)&&(screen.height==864)){ document.write("<body background='a.JPG'>"); }
</SCRIPT>
|