一、 想要css背景图固定大小不变,在对应属性加上一下代码就可以了: background-size: cover;//注意:一定要把这个属性配合fixed使用; background-repeat: no-repeat; background-attachment:fixed;