Ray Daniels wrote up something on this in an old Zymurgy if someone has the time to search it out. There must be riboflavin present (I think) which is a byproduct of fermentation. The beer must be light penetrable, if that's a word, so the lighter the beer the quicker it is light struck. Also the hoppier the beer the more it will stink.
I remember going out into the beer garden of a brewpub once and asked for a paper bag for my pint. I hate skunky beers that much. My wife thinks I'm overly geeky, but at least my IPA will smell good.