At least 700 families lost their homes in an earthquake that rocked Yunnan province in southwest China.