/* packageF/pages/xcxServiceChat/xcxServiceChat.wxss */ .mainBox{ width: 100vw; height: 100vh; position: absolute; left: 0; right: 0; top: 0; bottom: 0; } .imgBox{ height: 100vh; width: 100vw; background-position: 50%; background-repeat: no-repeat; background-attachment: fixed; position: relative; /* object-fit: contain; */ /* object-fit: cover; */ } image{ margin: auto; }