China has restricted the construction of extremely tall skyscrapers in smaller cities as part of a crackdown on wasteful vanity projects by local governments.