A colorimetric and ratiometric fluorescent probe for S2− and CN− was designed. Probe included multiple reactive site, occurred different Michael addition reaction. The different spectral properties were collected with the colors change. Probe has been employed successfully to detect S2− and CN− species in living cells.