按头装帽 (按頭裝帽) àn tóu zhuāng mào

àn tóu zhuāng mào phrase right hat to fit a head / act according to the situation
Domain: Literary Chinese 文言文
Notes: (Mathews 1931 '按頭裝帽' p. 5)