一些CSS技巧 1、网页LOGO背景居中 html { background: #f5f7f9 url(img/logo.png) no-repeat center center fixed; background-size: 150px; } 不要使用body,因为它的高度经常会比浏览器窗口的高度低