纯css实现可过滤数据的tab标签选项卡
代码语言:html
所属分类:选项卡
代码描述:纯css实现可过滤数据的tab标签选项卡
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
background-color: rgba(0, 0, 0, 0.85);
color: whitesmoke;
font-weight: 400;
font-size: 15px;
line-height: 1.7;
}
.wrapper {
width: 100%;
padding: 60px 0;
position: relative;
display: flex;
justify-content: center;
}
[type="radio"]:checked,
[type="radio"]:not(:checked) {
position: absolute;
left: -9999px;
}
[type="radio"]:checked + label,
[type="radio"]:not(:checked) + label {
position: relative;
padding-left: 12px;
padding-right: 12px;
letter-spacing: 3px;
cursor: pointer;
line-height: 30px;
font-size: 15px;
text-transform: uppercase;
font-weight: 500;
color: #fff;
margin-right: 10px;
margin-left: 10px;
-webkit-transition: all 0.2s ease;
transition: all 0.2s ease;
}
[type="radio"]:checked + label:after,
[type="radio"]:not(:checked) + label:after {
co.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0