0
如何爲此添加類? <%= image_tag(event.actor.profile.photo.url(:tiny)) %>
如何爲此添加課程?
如何爲此添加類? <%= image_tag(event.actor.profile.photo.url(:tiny)) %>
如何爲此添加課程?
試試這個:
<%= image_tag(event.actor.profile.photo.url(:tiny), :class => "foo") %>
啊我是在第二個''後面添加類的' – user730569 2011-05-09 04:50:20
你看過了'image_tag'的文檔? – Wes 2011-05-09 04:49:08