The COVID-19 pandemic represents a quintessential public health crisis, profoundly impacting the utilization patterns of urban green spaces through stringent quarantine and lockdown measures. However, existing research inadequately addresses specific concerns regarding future urban green spaces and tends to oversimplify population divisions. This study delves into the needs and preferences of Shanghai residents affected by the pandemic and quarantine measures, focusing on various aspects such as specific types of green spaces, facilities, landscape elements, and landscape and spatial types. Multifactorial population clustering was also performed. This study delineates the following conclusions: (1) It is imperative to afford residents access to green spaces at least once a week, even during quarantine periods. (2) Residents exhibited a preference for accessible green spaces equipped with essential amenities, favoring unobstructed vistas and plant-centric ecological landscapes during the pandemic. Additionally, there is a notable preference for private green spaces among residents. (3) Post-pandemic, the “affluent” group displays a heightened overall demand for green spaces, the “middle-class” group shows a conspicuous inclination towards specific green space landscape elements, while the “low-income” group consistently exhibits a low preference for green spaces during and after the pandemic. This study underscores the necessity of developing human-centric green spaces to promote equity and resilience in the face of future emergencies, rooted in residents’ preferences amidst public health crises.