How to set inline style for element in HAML

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

Here is my code:

..

It parses only style=\'posit

5条回答
  •  旧时难觅i
    2021-02-02 06:09

    If you are looking inline css for image :

    <%= image_tag( 'image_name.png', style: 'height: 25px; width: 200px; position: absolute' ) %>
    

提交回复
热议问题