Shanghai warned children and the elderly to stay indoors as smog engulfed the city, sending PM2.5 levels to seven times what the World Health Organization recommends for daily exposure.