background: url(.jpg) no-repeat center 0px; background-position: center 0; background-size: cover;
这是三个属性,便可以实现想要的效果