Denmark has joined Australia, the US and others in a diplomatic boycott of the Beijing Olympics.