随风倒舵

suí fēng dǎo duò

to trim one's sails with the wind

to adopt different attitude depending on the circumstances (idiom)

随

suí

to follow

风

fēng

wind

倒

dǎo

to fall; to collapse; to lie horizontally

舵

duò

helm