More than 300 firefighters had contained the fire around 6 p.m. and extinguished the remaining flames by 8:00 p.m.. The fire spread to 2,000 square meters.
The injured firefighters were being treated in hospitals and were not in any danger, doctors said.
No one at the factory got hurt.
Residents within 200 meters of the plant in southwest Shanghai had been evacuated.
The city's environment authority were also at the site to monitor the air quality as the smoke from the burning plastic materials could be harmful.
They found that the content of styrene was slightly higher than usual in the atmosphere within a square kilometer. The air quality outside that area was barely affected by the accident.
The municipal environment authority said southeast winds, measuring force 3-4, blew in Shanghai on Thursday. Fengxian District, where the accident occurred, is in the southwest of the city, so the smoke and dust were unlikely to flow to the downtown area.
British firm Rexam is one of the world's largest consumer packaging groups and a leading beverage can maker. Its Shanghai company was established in 1992.
The picture shows heavy smoke rising to the sky when a blaze broke out at a plastic packaging factory on Thursday, July 17, 2008 in Shanghai. [Photo: chinanews.com]
(Xinhua News Agency July 18, 2008)