Ha, I can already predict the responses here. My guess is the consensus will be shorts and polo shirt.
Tourists wear all sorts of outfits and, if you want a laugh, stroll down Khao San road. (I wear long pants and a polo shirt.)
You can't wear flip flops or shorts into the major sites. Check the dress code before you go.