DIV:
<div class="bg-black-1 p-b-60">
<div class="container">$func_tabstrip(navi=tag,para=Case,title=10,disp=2,tabs=5,subimg=1,subemeo=1,mode=3,rows=3,list=5)$</div>
</div>
CSS:
<!--tag.Navigator.css-->
#tag .RowsTitle{ text-align:center; position:relative;}
#tag .RowsTitle .CLeft{ display:block; width:50%; margin:0 auto; height:40px; border-bottom:1px solid #CCC; position:absolute; z-index:80; top:100px; left:0; right:0;}
#tag .RowsTitle .CRight{ display:block; width:20px; height:40px; border-bottom:2px solid #c00; position:absolute; z-index:90; top:100px; left:50%; margin-left:-10px;}
#tag .RowsTitle .Title{ text-align:center; position:relative;}
#tag .RowsTitle .Title .cn{ position:relative; z-index:100; top:72px; font-size:24px; color:#c00; font-weight:bold; text-shadow:0px 0px 5px #fff;}
#tag .RowsTitle .Title .en{ font-family:impact; font-size:72px; opacity:.1; color:#888; text-transform:uppercase;}
<!--tag.ArticleSummary.Css-->
#ArticleSummary ul{ display: flex; flex-flow: row wrap; justify-content: space-between;}
#ArticleSummary ul li{ width: 32%; height: 350px; margin-bottom: 2em;}
#ArticleSummary ul li .thumbs{ display: block; width: 100%; height:calc(100% - 6em);}
#ArticleSummary ul li .thumbs a{ display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;}
#ArticleSummary ul li img{ padding: 0.5rem; background-color: #fff; border: 1px solid #dee2e6; border-radius: 0.25rem; max-width: 100%; height:100%;}
#ArticleSummary ul li .detail{ display: block; height: 5em; margin: 10px; text-align:center; overflow: hidden;}
#ArticleSummary ul li .detail .title a{ font-size:large; padding-top: 10px;}
#ArticleSummary ul li .detail .intro{font-size: x-small; color: #666;}
#ArticleSummary ul li .detail .intro .enter{ display: none;}
<!--tag.tabstrip.css-->
#TabStrip{ margin-top:18px;}
.TabNavTitle{ display:flex; flex-flow: row wrap; justify-content:center; align-items: center; text-align:center;}
.TabTitle{ display: inline-flex; margin: 5px;}
.TabTitle a { display: block; padding: 10px 20px; background:#c00; color: #fff;}
.TabNavContent{ margin-top:30px;}
.TabNavContent #ArticleSummary ul li .detail{ text-align: left;}
.TabNavContent #ArticleSummary ul li .detail .title a{ color:#fff;}
.TabNavContent #ArticleSummary ul li .detail .intro{ line-height: 1.8em;}
自适应:
@media (max-width: 1200px){
#tag .RowsTitle .CLeft,#tag .RowsTitle .CRight{ top: 68px;}
#tag .RowsTitle .Title .cn{ top:62px; }
#tag .RowsTitle .Title .en{ font-size:56px;}
}
@media (max-width: 992px) {
.p-b-60{ padding-bottom: 50px;}
}
@media (max-width: 768px) {
.p-b-60{ padding-bottom: 40px;}
}
@media (max-width: 576px) {
.p-b-60{ padding-bottom: 30px;}
#tag .RowsTitle .CLeft{ width: 80%;}
}
|