To clarify the superconducting gap structure of the spin-triplet superconductor Sr_2RuO_4, the in-plane thermal conductivity has been measured as a function of relative orientations of the thermal flow, the crystal axes, and a magnetic field rotating within the 2D RuO_2 planes. The in-plane variation of the thermal conductivity is incompatible with any model with line nodes vertical to the 2D planes and indicates the existence of horizontal nodes. These results place strong constraints on models that attempt to explain the mechanism of the triplet superconductivity.