0

我怎样才能让我的背景图像始终贴在页面底部。是我遇到问题的页面。我将图像附加到正文,我的 CSS 是

html {
height:100%;
     }

body {
background: #fff url(images/bg.png) repeat-x;
-moz-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased; 
color: #404040;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-smoothing: antialiased;
line-height: 1.5em;
text-rendering: optimizeLegibility;
 }
4

2 回答 2

2
body {
  background-attachment: fixed; /* stick it */
  background-position: bottom;  /* to the bottom */
}
于 2012-12-20T21:30:49.953 回答
0

采用:background-position: bottom left;

于 2012-12-20T21:32:07.363 回答