Two new stilbene derivatives, 4-methacryloxyl-4'-nitrostilbene (NS) and 4-(6-methacryloxyl)-hexyloxy-4'-nitrostilbene (HNS), were synthesized and characterized by FTIR, UV-Vis, HPLC and 1H NMR. The influence of structure, concentration and solvent polarity on the fluorescence of the two compounds was investigated in the present paper. Results showed that both NS and HNS have concentration quenching effect and the fluorescence spectrum exhibited a red shift with the increase in the polarity of solvents. Moreover, the donor-acceptor structure is formed in HNS due to the introduction of donor group hexyloxy, which leads to a 72 nm red shift of the maximum wavelength of fluorescence compared with NS, and the fluorescence generated from such composite in DMF solution would change from yellow to orange.