开发者

LESS mixins only working when declared in the same style sheet

I'm a little confused about something:

I decided to make a global LESS document where I declare my mixins. When the mixins are referenced in other style sheets, they do not work. They only seem to work when they ar开发者_StackOverflow中文版e declared and referenced in the same style sheet. This is really annoying. Is this how LESS is suppose to work?

Thanks!

Bastain


LESS uses an import style that is similar to that used by C and C++. You need to import your mixin stylesheet into your LESS file using the @import command before you can use those mixins.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜