How to set inline style for element in HAML

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

Here is my code:

..

It parses only style=\'posit

5条回答
  •  情深已故
    2021-02-02 05:44

    It would have been handy if you'd posted the HAML you're using, but this is how it's done:

    %div.some{ :style => "position: absolute; left: 300px; top: 300px;" }
    

提交回复
热议问题