Band engineering of 2D transition-metal dichalcogenides (2D-TMDs) is a vital task for their applications in electronic and optoelectronic nanodevices. In this study, we investigate the joint effect from size and composition contributions on the band shift of 2D-TMD alloys in terms of atomic bond relaxation consideration. A theoretical model is proposed to pursue the underlying mechanism, which can connect the band offset with the atomic bonding identities in the 2D-TMD alloys. We reveal that the bandgap of 2D-TMD alloys presents a bowing shape owing to the size-dependent interaction among atoms and shows blue shift or red shift due to different intermixing of components. It is demonstrated that both size and composition can be performed as the useful methods to modulate the band shift, which suggests an effective way to realize the desirable properties of 2D-TMD alloys.