What kind of climate does dinosaurs used to live in?

Tropical liKe a rainforest but some lived in the water.