Seismic elastic parameter inversion translates seismic data into subsurface structures and physical properties of formations. Traditional model-based inversion methods have limitations in retrieving complex geological structures. In recent years, deep learning methods have emerged as preferable alternatives. Nevertheless, inverting multiple elastic parameters using neural networks individually is computationally intensive and can lead to overfitting due to a shortage of labeled data in field applications. Multi-task learning can be employed to invert elastic parameters simultaneously. In this work, a hybrid network that leverages the fully convolutional residual network (FCRN) and the gated recurrent unit network (GRU) is designed for the simultaneous inversion of P-wave velocity and density from post-stack seismic data. The FCRN efficiently extracts local information from seismic data, while the GRU captures global dependency over time. To further improve the horizontal continuity and inversion stability, we use a multi-trace to single-trace (M2S) inversion strategy. Consequently, we name our proposed method the M2S multi-task FCRN and GRU hybrid network (M2S-MFCRGRU). Through anti-noise experiments and blind well tests, M2S-MFCRGRU exhibits superior anti-noise performance and generalization ability. Comprehensive experimental inversion results also showcase the excellent lateral continuity, vertical resolution, and stability of the M2S-MFCRGRU inversion results.