It has legs

There is a reasonably common phrase, "[something] has legs." I'm wondering if it means, figuratively, that something is strong, agile, or has endurance.

Does anyone know for sure which is meant? And, out of curiosity, what's the derivation.

Replies