我有nuxt-link
这样的人
<nuxt-link to="/login" class="nuxtLinkStyle">Login</nuxt-link>
并且使用nuxtLinkStyle
类对其进行样式设置
.nuxtLinkStyle {
text-decoration: none;
color: inherit !important;
cursor: pointer;
}
但是将鼠标悬停在链接上时,光标不会显示指针,但会显示默认值。任何提示如何执行此操作?
在小提琴沙箱中对此进行了尝试,确实确实将光标显示为指针。您确定已将CSS链接到head标签吗?
<link rel="stylesheet" type="text/css" href="index.css">