Cosmetic agents for the cosmetic treatment of keratin fibres contain in a cosmetic carrier, i) at least one polymer and ii) at least one compound of the formula R1—X1—(O—CH2CH2)n—OH (I), comprising at most 20 ethylene oxide units iii) at least one linear or branched compound of the formula:with at least 30 ethylene oxide units and iv) at least one propellant. The cosmetic agents effect a foam which permits styling with a high degree of hold, high flexibility and good care and does not weigh down the hair.