css全局背景填充 html定义最外层div选择器 <div id="building"> </div> css代码如下 <style> #building{ background:url("../assets/image/BJ1.jpg"); width:100%; //大小设置为100% height:100%; //大小设置为100% position:fixed; background-size:100% 100%;} </style>