Yes, wearing shorts in China is fine. Just be respectful and dress the way you normally would. Anywhere overly revealing clothing would be disrespectful in the US, for instance, it would probably be looked down on in China.