tab vue 竖排_vuejs实现的的竖向tab选项卡

这篇博客展示了如何使用 Vue.js 创建一个竖向排列的选项卡组件。通过CSS样式设置,实现选项卡的背景颜色变化和切换动画效果。内容包括Vue组件定义,以及`v-for`指令和事件监听来实现内容的动态切换。
摘要由CSDN通过智能技术生成
Document

*{padding: 0;margin: 0}

#tabemplyee{

width: 800px;height: 300px;margin: 0 auto; background-color: #ddd;

}

.e_tab{

height: 100%;line-height: 50px;background-color: #999;padding: 0;

}

.e_tab ul li{ display:block;margin:10px 0; width:100%;text-align: center;color: #fff; cursor: pointer;}

.e_tab ul li a{text-decoration: none;color: #fff;}

.e_tab_bd{ margin: 3%;}

.active{

background-color: #337ab7;

border-radius: 4px;

}

/*切换动画*/

.fade-transition {

transition: opacity 0.3s ease;

}

.fade-enter,

.fade-leave {

opacity: 0;

}

.fa{

width: 0;

height: 0;

border-top: 25px solid transparent;

border-right: 25px solid #fff;

border-bottom: 25px solid transparent;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值