css实现自适应选项卡tab效果代码

代码语言:html

所属分类:选项卡

代码描述:css实现自适应选项卡tab效果代码

代码标签: css 自适应 选项卡 tab

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        /* Basic */
        
        @import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Oswald:wght@200;300;400;500;600;700&family=Roboto+Condensed:wght@300;400;700&family=Roboto:wght@100;300;400;500;700;900&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&family=Spectral:wght@200;300;400;500;600;700;800&display=swap");
        
        
        body {
          padding: 0;
          margin: 0;
          height: 100%;
          font-family: "Roboto", sans-serif;
          background: linear-gradient(#141e30, #243b55);
        }
        .title {
            text-align: center;
            padding: 50px 0px 25px 0;
            font-size: 44px;
            font-weight: 600;
            color: #21222c;
            font-family: 'Playfair Display SC';
        }
        .wrapper {
          background-color: #f6f8ff;
          width: 100%;
          min-height: 100vh;
          background: transparent;
          opacity: 1;
        }
        
        
        .wrapper.pre  {
            background-size: cover !important;
          
            position: absolute;
            top: 0;
            z-index: -2;
            opacity: 0.75;
          background: url(//repo.bfw.wiki/bfwrepo/image/6380162717efd.png);
        }
        
        
        .wrapper .line {
          width: 50%;
          margin: 25px auto 0 auto;
          height: 1px;
          background-color: #c3d2e3;
        }
        h2.tab-title {
          font-weight: 300;
        }
        h2.tab-title.tab-primary {
          color: #636983;
        }
        h2.tab-title.tab-success {
          color: #51a14c;
        }
        h2.tab-title.tab-default {
          color: #525252;
        }
        h2.tab-title.tab-warning {
          color: #b12222;
        }
        .container {
          width: 100%;
          padding: 10px 0;
          text-align: center;
        }
        .container .card {
          max-width: 600px;
          min-height: 140px;
          background-color: white;
          border-radius: 10px;
          border: 1px solid #e3e3e3;
          margin: 0 auto;
        }
        .tabs {
          text-align: left;
          position: relative;
        }
        .tabs input {
          position: absolute;
          opacity: 0;
          margin: 0;
          padding: 0;
        }
        .tabs input + label {
          font.........完整代码请登录后点击上方下载按钮下载查看

网友评论0