Shanghai ordered all of its schools to switch to online classes after some schools in the city stopped in-person classes because teachers and staff are ill.