Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的代码中,我有一个变量<%= phone_number_link(@user.wphone) %>,我想从中创建一个更大的可点击按钮。任何人都可以帮忙吗?
<%= phone_number_link(@user.wphone) %>
您可以添加一个 CSS 类来设置元素的样式。
<%= link_to phone_number_link(@user.wphone), class: "button" %>