.con{ position: absolute; left: 0; right: 0; top: 0; bottom: 0; } .con image{ position: absolute; width: 400rpx; height: 400rpx; left: 0; right: 0; top: 0rpx; bottom: 0; margin: auto; }