Nuxtjs nuxt-link在悬停时未显示为指针

问题描述 投票:0回答:1

我有nuxt-link这样的人

<nuxt-link to="/login" class="nuxtLinkStyle">Login</nuxt-link>

并且使用nuxtLinkStyle类对其进行样式设置

.nuxtLinkStyle {
   text-decoration: none;
   color: inherit !important;
   cursor: pointer;
}

但是将鼠标悬停在链接上时,光标不会显示指针,但会显示默认值。任何提示如何执行此操作?

css vue.js hyperlink nuxt.js
1个回答
0
投票

在小提琴沙箱中对此进行了尝试,确实确实将光标显示为指针。您确定已将CSS链接到head标签吗?

<link rel="stylesheet" type="text/css" href="index.css">

© www.soinside.com 2019 - 2024. All rights reserved.