开发者

How do I tell what are the ids and classes of a rail html.erb component?

开发者 https://www.devze.com 2023-04-09 09:52 出处:网络
So in the tutorial example in Agile Web Development v.4, I was trying to change the css style of the table populated by line_items in the cart menu. So I thought the id should be #开发者_StackOverflow

So in the tutorial example in Agile Web Development v.4, I was trying to change the css style of the table populated by line_items in the cart menu. So I thought the id should be #开发者_StackOverflow中文版cart, but apparently the id should be #store? I don't know how to access the id information of a particular .html.erb block.


You access the id information in an .html.erb file just as you would in a normal .html file, it is still just basic HTML. You would set the id of your or just like you would in normal HTML. Just set the id property of your HTML element, and add your CSS for it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号