Is it possible to inline LESS stylesheets?

后端 未结 2 2035
耶瑟儿~
耶瑟儿~ 2020-12-15 15:57

For example, is it possible to do something like:




        
相关标签:
2条回答
  • 2020-12-15 16:27

    You actually need to use

    <style type="text/less">
    

    instead of:

    <style type="stylesheet/less">
    

    Otherwise it won't work.

    Remember to place the <style> element before the <script> element to load less.js.

    0 讨论(0)
  • 2020-12-15 16:30

    This has been possible since July 2010, and it works with today's Less 1.2.0 version.

    See the initial diff that added support for this.

    0 讨论(0)
提交回复
热议问题