In order to remarkably enhance the absorption capability of (CH3NH3)PbI3, a tunable narrow-band (CH3NH3)PbI3-based perfect absorber based on the critical coupling with guided resonance is proposed. By using the finite-difference time-domain (FDTD) simulations, a complete absorption peak is achieved at the wavelength of 1310 nm. Moreover, we have compared the simulation results with theoretical calculations, which agree well with each other. By changing related structural parameters, the wavelength of absorption peak can be tuned effectively. Furthermore, the proposed absorber can tolerate a relatively wide range of incident angles and demonstrate polarization-independence. In addition to (CH3NH3)PbI3, the complete optical absorption in the other halide perovskites can be realized by the same mechanism.