去除router-link下划线
时间: 2023-10-20 08:02:45 浏览: 144
要去除router-link下划线,可以使用以下两步操作:
1. 给a标签添加CSS样式控制,将text-decoration设为none,即去掉下划线。
2. 同样地,给router-link-active类添加CSS样式控制,也将text-decoration设为none,以确保活动链接状态下的下划线也被去除。
具体的代码示例如下:
```css
#### 引用[.reference_title]
- *1* [vue router-link 默认a标签去除下划线的实现](https://download.csdn.net/download/weixin_38560502/14712120)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [去掉router-link文字的下划线](https://blog.csdn.net/weixin_52418790/article/details/117361939)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Vue中消除router-link下划线](https://blog.csdn.net/qq_51114283/article/details/119560945)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文