AN earthquake centred in the Yellow Sea off China's eastern coast has rattled Shanghai, causing buildings to shake but