代码如下: body{ margin:0; padding:0; background:url(../images/headbg.jpg) repeat-x; background-position:center top; }