我有一个带有Bootstrap4 alpha6的rails 5.0.1应用程序。
我的页面上有一个button_to链接。
<%=
button_to "Edit Chapter",
edit_chapter_path(chapter),
method: :get,
class: "btn btn-success"
%>
当我将鼠标悬停在此链接上时,鼠标不会将其光标更改为指针。此外,Chrome上状态栏中的链接预览也不会显示。
我已通过添加到application.scss
.btn {
cursor:pointer;
}
如何恢复状态栏中显示的链接功能?
我可以确认它适用于应用中的link_to
个链接。只有button_to
的任何内容都不起作用。