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-content: center;
}
.nav-item {
display: inline-block;
margin-bottom: 0px;
margin-right: 15px;
}
li:last-child {
margin-right: 0px;
}
.nav-link {
text-align: center;
border: 0px;
opacity: 0.7;
color: black;
border-bottom: 2px solid transparent;
}
.nav-link.active {
color: #dc3545 !important;
}
.nav-link .active {
border: 0px;
opacity: 1;
border-bottom: 2px solid black;
}
.nav-link i {
font-size: 40px;
margin-bottom: 20px;
}
.nav-link p {
margin-bottom: 0px;
font-size: 21px;
}
.nav-tabs .nav-link:focus {
border-color: unset;
}
/* nav-tabs */