那还不如不学了。

<style type="text/css"> body{ background:url("image/background.jpg"); background-size:1400px 768px; } </style>
使用background-size属性可对图片进行长和宽的设置
<style type="text/css"> body{ background:url("image/background.jpg"); background-size:1400px 768px; } </style>
background-position-x:50%; background-repeat:no-repeat;//这句是不重复出现同一张图片
<style type="text/css"> body{ background:url("image/2011109162922726.jpg"); background-repeat:no-repeat; background-size:1368px 768px; background-position-x:50%; } </style>
<style type="text/css"> body{ background:url("image/2011109162922726.jpg"); background-repeat:no-repeat; background-size:800px 720px; background-position-x:50%; } </style>
<style type="text/css"> body{ background:url("image/12.jpg"); background-repeat:no-repeat; background-size:800px 720px; background-position-x:50%; } </style>