背景图片始终居中显示的样式

摘要 : Background image is always centered style

不管是多高,拉动滚动条背景图片总是居中显示。

BODY {background-image:

background-image: URL(picture1.jpg);

background-position: center;

background-repeat: no-repeat;

background-attachment: fixed;}

上一篇 :Firefox和IE都支持的Alpha透明效果的样式
下一篇 :javascript获取控件的绝对位置