Many people posting on Sina Weibo -- China's version of Twitter -- said the shaking lasted between six and eight seconds.
A picture posted online showed people in the centre of Mang, in Yingjiang county, standing in the street, with the poster saying they had run out of an eight-storey building because of the tremors.