<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        簡約時尚的純CSS3Tabs選項卡特效

        來源:懂視網 責編:小采 時間:2020-11-27 18:53:26
        文檔

        簡約時尚的純CSS3Tabs選項卡特效

        簡約時尚的純CSS3Tabs選項卡特效:簡要教程這是一款使用純CSS3制作的Tabs選項卡特效。該Tabs選項卡簡約時尚,各個選項卡之間切換時使用了下劃線跟隨動畫,整體效果非常不錯。HTML結構整個Tabs選項卡的HTML結構分為幾個部分:使用<input>元素和一個無序列表來制作導航。<inpu
        推薦度:
        導讀簡約時尚的純CSS3Tabs選項卡特效:簡要教程這是一款使用純CSS3制作的Tabs選項卡特效。該Tabs選項卡簡約時尚,各個選項卡之間切換時使用了下劃線跟隨動畫,整體效果非常不錯。HTML結構整個Tabs選項卡的HTML結構分為幾個部分:使用<input>元素和一個無序列表來制作導航。<inpu

        簡要教程

        這是一款使用純CSS3制作的Tabs選項卡特效。該Tabs選項卡簡約時尚,各個選項卡之間切換時使用了下劃線跟隨動畫,整體效果非常不錯。

        HTML結構

        整個Tabs選項卡的HTML結構分為幾個部分:使用<input>元素和一個無序列表來制作導航。

        <input type="radio" id="tab1" name="tab-control" checked>
        <input type="radio" id="tab2" name="tab-control">
        <input type="radio" id="tab3" name="tab-control"> 
        <input type="radio" id="tab4" name="tab-control">
        <ul>
         <li title="tab 1"><label for="tab1" role="button"><span>Tab 1</span></label></li>
         <li title="tab 2"><label for="tab2" role="button"><span>Tab 2</span></label></li>
         <li title="tab 3"><label for="tab3" role="button"><span>Tab 3</span></label></li>
         <li title="tab 4"><label for="tab4" role="button"><span>Tab 4</span></label></li>
        </ul>

        各個選項卡的內容包含在一個<p>元素中。

        <p class="content">
         <section>
         <h2>Tab 1 content</h2>
         </section>
         <section>
         <h2>Tab 2 content</h2>
         </section>
         <section>
         <h2>Tab 3 content</h2>
         </section>
         <section>
         <h2>Tab 4 content</h2>
         </section>
        </p>

        用于制作下劃線動畫的線條使用一個<p>元素來制作。

        <p class="slider"><p class="indicator"></p></p>

        CSS樣式

        該Tabs選項卡的主要CSS樣式如下:

        .tabs {
         left: 50%;
         -webkit-transform: translateX(-50%);
         transform: translateX(-50%);
         position: relative;
         background: white;
         padding: 50px;
         padding-bottom: 80px;
         width: 70%;
         height: 250px;
         box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
         border-radius: 5px;
         min-width: 240px;
        }
         
        .tabs input[name="tab-control"] { display: none; }
         
        .tabs .content section h2, .tabs ul li label {
         font-weight: bold;
         font-size: 18px;
         color: #428BFF;
        }
         
        .tabs ul {
         list-style-type: none;
         padding-left: 0;
         display: -webkit-box;
         display: -webkit-flex;
         display: -ms-flexbox;
         display: flex;
         -webkit-box-orient: horizontal;
         -webkit-box-direction: normal;
         -webkit-flex-direction: row;
         -ms-flex-direction: row;
         flex-direction: row;
         margin-bottom: 10px;
         -webkit-box-pack: justify;
         -webkit-justify-content: space-between;
         -ms-flex-pack: justify;
         justify-content: space-between;
         -webkit-box-align: end;
         -webkit-align-items: flex-end;
         -ms-flex-align: end;
         align-items: flex-end;
         -webkit-flex-wrap: wrap;
         -ms-flex-wrap: wrap;
         flex-wrap: wrap;
        }
         
        .tabs ul li {
         box-sizing: border-box;
         -webkit-box-flex: 1;
         -webkit-flex: 1;
         -ms-flex: 1;
         flex: 1;
         width: 25%;
         padding: 0 10px;
         text-align: center;
        }
         
        .tabs ul li label {
         -webkit-transition: all 0.3s ease-in-out;
         transition: all 0.3s ease-in-out;
         color: #929daf;
         padding: 5px auto;
         overflow: hidden;
         text-overflow: ellipsis;
         display: block;
         cursor: pointer;
         -webkit-transition: all 0.2s ease-in-out;
         transition: all 0.2s ease-in-out;
         white-space: nowrap;
         -webkit-touch-callout: none;
         -webkit-user-select: none;
         -moz-user-select: none;
         -ms-user-select: none;
         user-select: none;
        }
         
        .tabs ul li label br { display: none; }
         
        .tabs ul li label svg {
         fill: #929daf;
         height: 1.2em;
         vertical-align: bottom;
         margin-right: 0.2em;
         -webkit-transition: all 0.2s ease-in-out;
         transition: all 0.2s ease-in-out;
        }
         
        .tabs ul li label:hover, .tabs ul li label:focus, .tabs ul li label:active {
         outline: 0;
         color: #bec5cf;
        }
         
        .tabs ul li label:hover svg, .tabs ul li label:focus svg, .tabs ul li label:active svg { fill: #bec5cf; }
         
        .tabs .slider {
         position: relative;
         width: 25%;
         -webkit-transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
         transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
        }
         
        .tabs .slider .indicator {
         position: relative;
         width: 50px;
         max-width: 100%;
         margin: 0 auto;
         height: 4px;
         background: #428BFF;
         border-radius: 1px;
        }
         
        .tabs .content { margin-top: 30px; }
         
        .tabs .content section {
         display: none;
         -webkit-animation-name: content;
         animation-name: content;
         -webkit-animation-direction: normal;
         animation-direction: normal;
         -webkit-animation-duration: 0.3s;
         animation-duration: 0.3s;
         -webkit-animation-timing-function: ease-in-out;
         animation-timing-function: ease-in-out;
         -webkit-animation-iteration-count: 1;
         animation-iteration-count: 1;
         line-height: 1.4;
        }
         
        .tabs .content section h2 {
         color: #428BFF;
         display: none;
        }
         
        .tabs .content section h2::after {
         content: "";
         position: relative;
         display: block;
         width: 30px;
         height: 3px;
         background: #428BFF;
         margin-top: 5px;
         left: 1px;
        }
         
        .tabs input[name="tab-control"]:nth-of-type(1):checked ~ ul > li:nth-child(1) > label {
         cursor: default;
         color: #428BFF;
        }
         
        .tabs input[name="tab-control"]:nth-of-type(1):checked ~ ul > li:nth-child(1) > label svg { fill: #428BFF; }
        @media (max-width: 600px) {
         
        .tabs input[name="tab-control"]:nth-of-type(1):checked ~ ul > li:nth-child(1) > label { background: rgba(0, 0, 0, 0.08); }
        }
         
        .tabs input[name="tab-control"]:nth-of-type(1):checked ~ .slider {
         -webkit-transform: translateX(0%);
         transform: translateX(0%);
        }
         
        .tabs input[name="tab-control"]:nth-of-type(1):checked ~ .content > section:nth-child(1) { display: block; }
         
        .tabs input[name="tab-control"]:nth-of-type(2):checked ~ ul > li:nth-child(2) > label {
         cursor: default;
         color: #428BFF;
        }
         
        .tabs input[name="tab-control"]:nth-of-type(2):checked ~ ul > li:nth-child(2) > label svg { fill: #428BFF; }
        @media (max-width: 600px) {
         
        .tabs input[name="tab-control"]:nth-of-type(2):checked ~ ul > li:nth-child(2) > label { background: rgba(0, 0, 0, 0.08); }
        }
         
        .tabs input[name="tab-control"]:nth-of-type(2):checked ~ .slider {
         -webkit-transform: translateX(100%);
         transform: translateX(100%);
        }
         
        .tabs input[name="tab-control"]:nth-of-type(2):checked ~ .content > section:nth-child(2) { display: block; }
         
        .tabs input[name="tab-control"]:nth-of-type(3):checked ~ ul > li:nth-child(3) > label {
         cursor: default;
         color: #428BFF;
        }
         
        .tabs input[name="tab-control"]:nth-of-type(3):checked ~ ul > li:nth-child(3) > label svg { fill: #428BFF; }
        @media (max-width: 600px) {
         
        .tabs input[name="tab-control"]:nth-of-type(3):checked ~ ul > li:nth-child(3) > label { background: rgba(0, 0, 0, 0.08); }
        }
         
        .tabs input[name="tab-control"]:nth-of-type(3):checked ~ .slider {
         -webkit-transform: translateX(200%);
         transform: translateX(200%);
        }
         
        .tabs input[name="tab-control"]:nth-of-type(3):checked ~ .content > section:nth-child(3) { display: block; }
         
        .tabs input[name="tab-control"]:nth-of-type(4):checked ~ ul > li:nth-child(4) > label {
         cursor: default;
         color: #428BFF;
        }
         
        .tabs input[name="tab-control"]:nth-of-type(4):checked ~ ul > li:nth-child(4) > label svg { fill: #428BFF; }
        @media (max-width: 600px) {
         
        .tabs input[name="tab-control"]:nth-of-type(4):checked ~ ul > li:nth-child(4) > label { background: rgba(0, 0, 0, 0.08); }
        }
         
        .tabs input[name="tab-control"]:nth-of-type(4):checked ~ .slider {
         -webkit-transform: translateX(300%);
         transform: translateX(300%);
        }
         
        .tabs input[name="tab-control"]:nth-of-type(4):checked ~ .content > section:nth-child(4) { display: block; }
        @-webkit-keyframes 
        content { from {
         opacity: 0;
         -webkit-transform: translateY(5%);
         transform: translateY(5%);
        }
         
        to {
         opacity: 1;
         -webkit-transform: translateY(0%);
         transform: translateY(0%);
        }
        }
        @keyframes 
        content { from {
         opacity: 0;
         -webkit-transform: translateY(5%);
         transform: translateY(5%);
        }
         
        to {
         opacity: 1;
         -webkit-transform: translateY(0%);
         transform: translateY(0%);
        }
        }
        @media (max-width: 1000px) {
         
        .tabs ul li label { white-space: initial; }
         
        .tabs ul li label br { display: initial; }
         
        .tabs ul li label svg { height: 1.5em; }
        }
        @media (max-width: 600px) {
         
        .tabs ul li label {
         padding: 5px;
         border-radius: 5px;
        }
         
        .tabs ul li label span { display: none; }
         
        .tabs .slider { display: none; }
         
        .tabs .content { margin-top: 20px; }
         
        .tabs .content section h2 { display: block; }

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        簡約時尚的純CSS3Tabs選項卡特效

        簡約時尚的純CSS3Tabs選項卡特效:簡要教程這是一款使用純CSS3制作的Tabs選項卡特效。該Tabs選項卡簡約時尚,各個選項卡之間切換時使用了下劃線跟隨動畫,整體效果非常不錯。HTML結構整個Tabs選項卡的HTML結構分為幾個部分:使用<input>元素和一個無序列表來制作導航。<inpu
        推薦度:
        標簽: 特效 簡單 效果
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: www亚洲精品少妇裸乳一区二区| 国产精品久久免费| 人人狠狠综合久久亚洲高清| 亚洲熟妇自偷自拍另欧美| 野花高清在线电影观看免费视频| 亚洲色图视频在线观看| 亚洲精品国产免费| 亚洲成aⅴ人在线观看| 免费A级毛片无码免费视| 亚洲中文字幕久久无码| 日本免费v片一二三区| 黄色a三级三级三级免费看| 亚洲一区二区三区在线播放| 国产伦精品一区二区免费| 国产亚洲成AV人片在线观黄桃| 麻豆精品成人免费国产片| 亚洲视频在线观看地址| 女人被弄到高潮的免费视频| 在线观看免费亚洲| 亚洲午夜福利精品久久| 国产情侣久久久久aⅴ免费| 亚洲福利一区二区精品秒拍| 毛片a级毛片免费播放下载| 日日摸日日碰夜夜爽亚洲| 亚洲精品国产精品乱码不卡√ | 免费大片av手机看片| 亚洲日韩欧洲乱码AV夜夜摸| 无码A级毛片免费视频内谢| 亚洲最大福利视频| 久久久青草青青国产亚洲免观 | 免费电影在线观看网站| 羞羞网站在线免费观看| 情人伊人久久综合亚洲| 免费看污成人午夜网站| 337P日本欧洲亚洲大胆精品| 日韩亚洲欧洲在线com91tv| 一个人看www在线高清免费看| 一级成人毛片免费观看| 亚洲欧洲日产韩国在线| 又大又黄又粗又爽的免费视频| 精品国产一区二区三区免费|