【发布时间】:2017-12-02 04:07:05
【问题描述】:
这会产生一个带下划线的链接:
<li><router-link to="/hello">Hello</router-link></li>
我的理解是router-link元素会生成一个a标签。
我已经在 CSS 中尝试过这些东西:
router-link{
text-decoration: none;
}
router-link a{
text-decoration: none;
}
router-link a{
text-decoration: none !important;
}
..但不幸的是,这些都不起作用。
【问题讨论】:
标签: css vue.js vuejs2 vue-router routerlink