.model_wrap{ width: 100%; height: 100vh; background-color: #000; opacity: 0.5; position: fixed; top: 0; display:none; } .model-bg{ width: 560px; height: 500px; position: absolute; top: calc(50% - 322px); left: 71%; margin-left: -600px; background-color: #fff; z-index:999 ; } .unchoose{ display: none; }