When walking on campus,it is necessary to walk around many fences and barriers.请问是简单句还是复

问题描述:

When walking on campus,it is necessary to walk around many fences and barriers.请问是简单句还是复
句,为什么

复合句,前面的When walking on campus是状语从句 = When you are walking on campus