How to set inline style for element in HAML

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

Here is my code:

..

It parses only style=\'posit

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-02 06:01

    Another approach in addition to the hash one by Dan Cheail is such:

    %div.some(style='position: absolute; left: 300; top: 300;')
    

提交回复
热议问题