產品 nav-tabs

  • 132
  • 0

 html


    <!-- nav-tabs -->

    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <ul id="myTab" class="nav nav-tabs" role="tablist">
                    <li class="nav-item">
                        <a class="nav-link text-center active" href="#one" role="tab" data-toggle="tab">
                            <i class="fas fa-futbol"></i>
                            <p>保健食品</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-center" href="#two" role="tab" data-toggle="tab">
                            <i class="fa fa-heart"></i>
                            <p>美妝 保養</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-center" href="#three" role="tab" data-toggle="tab">
                            <i class="fas fa-smile"></i>
                            <p>身體保養</p>
                        </a>
                    </li>
                </ul>


                <!-- Tab panes -->
                <div class="tab-content">
                    <!-- 保健食品 -->
                    <div role="tabpanel" class="tab-pane fade show active" id="one">

                        <div id="comboWidgetContainer"></div>
                        <script src="https://api.caas.tw/Widget/Layout.js"></script>
                        <script>
                            var widget = new OnePage.Layout({
                                "Container": "comboWidgetContainer",
                                "Id": 13,
                                "CampaignId": 791,
                                "CustomerDedicated": false,
                                "HighlightOnly": false,
                                "Language": "zh-TW",
                                "LayoutId": 3,
                                "ShowAnimatedBanner": false,
                                "ShowCategory": false,
                                "ShowFooter": false,
                                "ShowHeader": true,
                                "ShowPolicy": true,
                                "ShowSummaryBottom": true,
                                "ShowSummaryTop": false,
                                "SkipPayment": false
                            });
                        </script>

                    </div>
                    <!-- //保健食品 -->

                    <!-- 美妝 保養 -->
                    <div role="tabpanel" class="tab-pane fade" id="two">

                        <!-- (0)div -->
                        <div id="5s3c"></div>
                        <script src="https://api.caas.tw/Widget/Layout.js"></script>
                        <script>
                            var widget = new OnePage.Layout({
                                "Container": "5s3c",
                                "Id": 13,
                                "CampaignId": 795,
                                "CustomerDedicated": false,
                                "HighlightOnly": false,
                                "Language": "zh-TW",
                                "LayoutId": 3,
                                "ShowAnimatedBanner": false,
                                "ShowCategory": false,
                                "ShowFooter": false,
                                "ShowHeader": true,
                                "ShowPolicy": true,
                                "ShowSummaryBottom": true,
                                "ShowSummaryTop": false,
                                "SkipPayment": false
                            });
                        </script>
                        <!-- (0)div -->

                        <!-- iframe -->
                        <!-- <div id="5s3c"></div>
                        <script src="https://api.caas.tw/Widget/Layout.js"></script>
                        <script>
                            var widget = new OnePage.Layout({
                                "Container": "5s3c",
                                "Id": 13,
                                "CampaignId": 795,
                                "CustomerDedicated": false,
                                "EmbeddedType": 1,
                                "HighlightOnly": false,
                                "Language": "zh-TW",
                                "LayoutId": 3,
                                "ShowAnimatedBanner": false,
                                "ShowCategory": false,
                                "ShowFooter": false,
                                "ShowHeader": true,
                                "ShowPolicy": true,
                                "ShowSummaryBottom": true,
                                "ShowSummaryTop": false,
                                "SkipPayment": false
                            });
                        </script> -->
                        <!-- iframe -->

                    </div>
                    <!-- //美妝 保養 -->

                    <!-- 身體保養 -->
                    <div role="tabpanel" class="tab-pane fade" id="three">

                    </div>
                    <!-- //身體保養 -->
                </div>
            </div>
        </div>
    </div>

    <!-- // nav-tabs -->

 

 

 

 

 

 

 

* nav-tabs */

.nav-tabs {

    justify-contentcenter;

}


 

.nav-item {

    displayinline-block;

    margin-bottom0px;

    margin-right15px;

}


 

li:last-child {

    margin-right0px;

}


 

.nav-link {

    text-aligncenter;

    border0px;

    opacity0.7;

    colorblack;

    border-bottom2px solid transparent;

}


 

.nav-link.active {

    color#dc3545 !important;

}


 

.nav-link .active {

    border0px;

    opacity1;

    border-bottom2px solid black;

}


 

.nav-link i {

    font-size40px;

    margin-bottom20px;

}


 

.nav-link p {

    margin-bottom0px;

    font-size21px;

}


 

.nav-tabs .nav-link:focus {

    border-colorunset;

}


 

/* nav-tabs */