Less and Bootstrap: how to use a span3 (or spanX [any number]) class as a mixin?
问题 Is it possibile to add span3 class in a mixin to avoid putting it in every element in my HTML? Something like: .myclass { .span3; // other rules... } EDIT I apologize I forgot to specify an important detail: span3 is a standard class of Bootstrap. I didn't find its definition in any file of the Bootstrap framework. 回答1: New Answer (requires LESS 1.4.0) What you actually desire is something known as extending in LESS and SASS terminology. For example, you want an HTML element (just an example)