"Have you ever" is a general question, referring to any time in the past up until the present. "Did you" refers to a specific time in the past - it's not stated what that time is, but would be required from the context of the conversation. Me, flipping through a travel magazine: Say, have you ever been on a safari?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.