cssdiv居中显示 #wrap{ background: rgb(0, 255, 157); border-radius: 50px; height: 50vh; position: absolute; width: 50vw; bottom: 0; top: 0px; margin: auto; left: 0; right: 0; } position设置absolute top、bottom、left、right设置0 margin设置auto