HTML自制tab,css自定义实现tab1.html

Welcome

* {

padding: 0px;

margin: 0px;

outline: none;

}

article {

border-top: none;

display: -webkit-box;

height: 100%;

position: relative;

width: 300px;

margin: 50px auto 0;

}

article>section:nth-child(1) a {

left: 0px;

position: absolute;

}

article>section:nth-child(2) a {

left: 101px;

position: absolute;

}

article>section:nth-child(3) a {

left: 202px;

position: absolute;

}

article>section {

width: 304px;

padding: 10px 0;

position: absolute;

left: 0px;

}

article>section a {

color: #333;

text-decoration: none;

display: block;

list-style: none;

-webkit-box-flex: 1;

font-size: 12px;

line-height: 30px;

text-align: center;

background: #f1f1f1;

border: 1px solid #ccc;

width: 100px;

z-index: 100;

}

article>section>section {

top: 41px;

position: absolute;

background: #fff;

border: 1px solid #ccc;

border-top: none;

padding: 10px 0;

}

article>section p {

font: 12px/1.7 simsun;

padding: 0 10px;

text-indent: 2em;

}

section:target {

z-index: 99;

}

section:target a {

background: #fff;

border-bottom: none;

}

.tab1-class{

background: #0000FF;

}

.tab2-class{

background: #00FF00;

}

菜单一

菜单二

菜单三

榜妹:#标配问题#从开始运营到现在,拾文化的内容模式经历过几个发展阶段,粉丝出现过几次增长高峰,是哪些原因呢?

拾文化:拾文化从2012年3月开始运营,现在总共有50万左右关注者,团队不大,12个人,以编辑为主,还有技术一名、设计两名、BD两名,以及打杂的我。

榜妹:#标配问题#拾文化是哪一天开始运营的?现在有多少关注者?拾文化团队有多少人?大家怎么分工呢?

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值