Changes in net primary productivity (NPP) to global change have been studied, yet the relative impacts of global change on grassland productivity at large scales remain poorly understood. Using 182 grassland samples established in 17 alpine meadows (AM) and 21 desert steppes (DS) in China, we show that NPP of AM was significantly higher than that of DS. NPP increased significantly with increasing leaf nitrogen content (LN) and leaf phosphorus content (LP) but decreased significantly with increasing leaf dry matter content (LDMC). Among all abiotic factors, soil nutrient factor was the dominant factor affecting the variation of NPP of AM, while the NPP of DS was mainly influenced by the changing of precipitation. All abiotic factors accounted for 62.4% of the spatial variation in the NPP of AM, which was higher than the ability to explain the spatial variation in the NPP of DS (43.5%). Leaf traits together with soil nutrients and climatic factors determined the changes of the grassland productivity, but the relative contributions varied somewhat among different grassland types. We quantified the effects of biotic and abiotic factors on grassland NPP, and provided theoretical guidance for predicting the impacts of global change on the NPP of grasslands.