Sheriff's spokesman Steve Barnett said the dress code has become a problem in recent years. He says the rules are in line with visitor dress codes at state prisons.
Officials approved the rules this week. They take effect next month.
The new rules also require visitors to keep their pants on their waists, bellies covered and upper thighs concealed. Guards will send visitors home if they think the clothing is too revealing.