css实现tab选项卡分类筛选数据效果代码

代码语言:html

所属分类:选项卡

代码描述:css实现tab选项卡分类筛选数据效果代码

代码标签: css tab 选项卡 筛选 数据

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<html>

<head>
    <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 {
          content: "";
          border-radius: 2px;
          height: 20px;
          padding: 5p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0