Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] 第289天 用CSS实现tab切换 #1837

Open
haizhilin2013 opened this issue Jan 29, 2020 · 2 comments
Open

[css] 第289天 用CSS实现tab切换 #1837

haizhilin2013 opened this issue Jan 29, 2020 · 2 comments
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第289天 用CSS实现tab切换

作者:一天有梦想的鱼

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Jan 29, 2020
@cxwht
Copy link

cxwht commented Jan 31, 2020

使用 :target 伪类来实现的吧

@zhaofeipeter
Copy link

1.用label结合单选按钮radio接受切换tab的单击
2.用zindex层级来显示当前tab页对应的内容
3.用css兄弟选择器选中对应的tab页签和内容页,添加相应的样式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css css
Projects
None yet
Development

No branches or pull requests

3 participants