vue el-tabs下划线长度
时间: 2023-10-17 14:25:33 浏览: 252
修改自reactnativescrollabletabview增加了根据文字内容适配下划线长度的功能
在Vue中,el-tabs组件的下划线长度可以通过修改样式来实现。根据提供的代码和引用中的样式修改,可以看出下划线的长度是通过修改.el-tabs__active-bar和.el-tabs__nav-wrap::after的top和bottom属性来控制的。将top和bottom属性设置为相同的值,即可消除下划线的长度。因此,可以通过修改样式中的top和bottom属性的值来调整下划线的长度。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vue elementui el-tabs 底部的下划线和切换时的下划线移动到上方](https://blog.csdn.net/LONGYog/article/details/124606876)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Vue3 - Element Plus 标签页 Tabs 去掉底部灰色线条下划线,隐藏 el-tabs / el-tab-pane 选项卡下面一条很...](https://blog.csdn.net/weixin_44198965/article/details/132229156)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文