How to set inline style for element in HAML

后端 未结 5 797
执念已碎
执念已碎 2021-02-02 05:06

Here is my code:

..

It parses only style=\'posit

5条回答
  •  迷失自我
    2021-02-02 05:45

    Requested a hash special case at: https://github.com/haml/haml/issues/787 to allow us to write:

    %div{ style: { display: "none", width: "50px" } }
    

    much like is possible for class: ["class1", "class2"].

提交回复
热议问题