Temperature tunable photonic crystals were fabricated based on liquid-infiltrated inverse opal films which were prepared by Tb3+doped SiO2with a sol-gel method. The photoluminescence was investigated with the photonic band gap shift tuned by temperature. The results show that obvious suppression of spontaneous emission occurs when the photonic band gap overlaps with the Tb3+emission band, while enhancement of the emission is observed if the emission band shifts at the edge of the band gap.