> 首先给Tab组件自定义class
```
/*未激活tab状态 */
.自定义class .do-tabtext-nav .tabs-style-bar li:not(.cur) {
background-color: rgb(254, 254, 254);
border: rgb(150, 206, 63) 2px solid;
border-radius: 5px;
}
/*激活tab状态 */
.自定义class .do-tabtext-nav li.cur {
color: rgb(251, 251, 251);
border-radius: 5px;
border: rgb(150, 206, 63) 2px solid;
}
/*tab按钮padding */
.自定义class .do-padding {
padding: 5px 16px!important;
}
```
Tab预加载切换
先传参数?
```
<script>
$(window).load(function() {
var test = window.location.search;
if (test=="?bt")
{
tabChange('yfhu0', 3 );
}
else if (test=="?lz")
{
tabChange('yfhu0', 2 );
}
else if (test=="?zb")
{
tabChange('yfhu0', 1 );
}
else if (test=="?xd")
{
tabChange('yfhu0', 4 );
}
else
{
tabChange('yfhu0', 0 );
}
});
</script>
```
```
<style>
.hm-tab .do-nav-float{width:50px;}
.hm-tab div.do-element-tabtext-content{ padding-left: 85px;}
.hm-tab .do-padding{ border: 1px #ff3300 solid;}
.hm-tab .do-lableSize-small>ul>li .do-padding {
padding: 6px 5px;
}
.hm-tab li.cur .des > * {
background: #ff0000;
color: #fff;
}
.hm-tab .do-tabtext-nav .des > * {
padding: 15px 10px;
color: #ff0000;
}
.hm-tab .do-tabtext-nav ul li {
margin-bottom: 20px;
}
#D-c-12-13-35-36{padding-left: 30px;
width: 13.6667%!important;}
.owl-stage{}
.do-space{z-index: 0!important;}
.hm-store .do-title{background-color: rgba(255, 0, 0, 0.6);}
.owl-nav .owl-prev{background: url(http://bk.image.styleweb.com.cn/2018/11/15/11825_joij4yhi.png) no-repeat !important;
width: 35px;
height: 35px;
background-size: cover!important;font-size: 0!important;margin-right: 70px;}
.owl-nav .owl-next{background: url(http://bk.image.styleweb.com.cn/2018/11/15/11825_joij4yhi.png) no-repeat !important;
width: 35px;
height: 35px;
background-size: cover!important;transform:rotate(180deg);font-size: 0!important;}
.owl-nav{position: absolute;
top: -40px;
right: 10%;}
.hm-store-img{padding-left: 20px;}
.do-playbtn {
cursor: pointer;
width: 60px;
height: 60px;
position: absolute;
top: 50%;
left: 50%;
z-index: 10;
opacity: 0.8;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANAAAADQCAQAAADcrSf/AAAJZElEQVR4Ae2dhVOdVxqHX0IY0glzI7C+G1/3uruXEM/qaL3EZqZOGrfKeN3HqqSu1IntFhrIGrdcaEKW79Td9VkhZyYM6YXr55zv/T1/wnPlfL/vnPeIj+Fb7MN06lnOVdzOI2xiKx1sx+xiOx1sZROPcDtXsZx6prMP3xJNocIwJlLLudxEsxWRBdtp5ibOpZaJDBNN7uEb1LKE++nG5Jlu7mcJtXxDNJmHBCeyhmZMEWhmLSeSkKFEw3jO4m52YorMTu7mLMaL5uvCOBbShCkxTSxknGh2DyP5Ew8SYRwh4kH+xEgR0bA3l5PCOEiKy9k7zmoqmEUTxnGamENFHFdp9bRhPKGN+hit8hhDA50Yz+ikgTFx+Oac676cNJLODfibxAgWkMR4TpIFjAhRz3RaMIHQwnTKQpLzCxoxgdHIL0J5CF1FLyZAelnl/cMsx9CCCZgWjvVXTjVXYWLA1VT7qOcI2jAxoZ0j/JJTyXIiTIyIWE6lL3p+yFOYGPIUPxL3Qx0pTExJUee2nOEsIcLEmIglDHdVz1gaMSiN1LioZzKbVc4uNjPZNT0H8i8MFuVfHOSSnhnswPRD2cFMV/ScRoQZgBJxmgt6FqqKNCwstZ6LMWlRLi6lnpWYQVFW6LfHdS6S4odFmCGjLCr+ys0oGXF6MfXM1IV1xkRFey7iUHowSsb0cGgx9Ezgn5isUDqYUGg91VqJ5sRmqgupp1xfKOTMesoLJ2gpRsmZpYXSM1XXbnkhYqrkP/wob3sNlK68by+hMq87dZSnqMyvoBUYxdkKlSNL+++TfOPLEP+Jjsrfs087ppQ0v/PCWx++HOCG4er8CLoaU2pBze9sevv1V8Pbdi+5h2MxpRfUR/frX4Wm6Nhc9VTR6oIgS/tbn4b1U9dKVW6CVmPcEGT5y9tvh/VTtzoXPb+i1x1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j86mkZ1FF7OTRs5hgmiGEhKcxDqai6JmA+s4OatVmoZvMpVlPEB33rV08wDLmMo3RZN7KGcStZzLTTSzPWsp22nmJs6llkmUS6Gi4Vvsx0zms4KruINH2EQbHdj/rS466GALm3iEO7iKFcxnJvvxLfEw/wGAbj5UKLcDwgAAAABJRU5ErkJggg==) 0% 0% / 100% no-repeat;
margin: -30px 0px 0px -30px;
}
</style>
<link href="https://cdn.bootcss.com/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/OwlCarousel2/2.3.4/assets/owl.theme.default.css" rel="stylesheet">
<script>
$(document).ready(function() {
$("#swiper_ .do-element-media-ul").addClass("owl-carousel");
$(".hm-store").before("<img class='hm-store-img' src='http://bk.image.styleweb.com.cn/2018/11/15/11825_joij09as.png'>");
$(".hm-store li:first-child .do-middle-center img").before("<div class='do-playbtn' data-video='http://oz4xzffwd.bkt.clouddn.com/45%E7%A7%92%E7%BD%91%E7%AB%99.mp4'></div>");
$(".hm-store1").before("<img class='hm-store-img' src='http://bk.image.styleweb.com.cn/2018/11/15/11825_joijbf05.png'>");
$(".hm-store2").before("<img class='hm-store-img' src='http://bk.image.styleweb.com.cn/2018/11/16/11825_jojwmbkt.png'>");
$('.hm-store .owl-carousel,.hm-store1 .owl-carousel').owlCarousel({
video:true,
loop: true,
margin: 10,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 3,
nav: false
},
1000: {
items: 1.35,
nav: true,
margin: 0
}
}
});
$('.hm-store2 .owl-carousel').owlCarousel({
video:true,
loop: true,
margin: 10,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 3,
nav: false
},
1000: {
items: 2.35,
nav: true,
margin: 0
}
}
})
});
</script>
<script src="https://cdn.bootcss.com/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>**
```
- 基本说明
- 常用在线前端CDN库
- 公共代码部分
- HTML基础
- 媒体查询(调整各种屏幕下的效果)
- 网站备案
- 阿里云备案
- 域名解析
- 阿里云常规解析
- 手机端M.后缀
- 301跳转
- 在线客服咨询平台解决方案
- 百度商桥
- 商务通
- 美恰客服
- 腾讯QQ
- 建站系统自带
- 逸创·云客服
- 编辑器组件高级用法
- 社区分享
- 新闻类
- 图文
- Tab组件自定义
- 子导航自定义
- 文字
- 幻灯片
- 手机端导航栏
- 电脑端导航
- 单页面导航
- 单排导航
- 表单
- 栏目条
- 背景
- 图文组件基础应用
- 图文组件高级应用
- jPages分页插件使用(用于普通图文分页)
- 图文上下滚动
- 底部吸底导航
- Layer弹窗特效
- 页面进入弹窗
- 弹窗特效
- 视频弹窗
- 字体图标
- Iconfont(阿里图标库)
- Font Awesome
- Chrome开发者工具中文文档
- 悬浮在线客服
- 华为云右侧在线客服
- 装修公司
- CSS
- DIV CSS3 box-shadow对象盒子阴影和图片阴影
- CSS选择器
- 边框
- 旋转
- JS
- URL网址信息
- JQ
- JQ选择器
- 常用JQ
- jQuery标签替换函数replaceWith()的使用例子
- 锚链接动画
- 手机端
- 全局样式
- 导航
- PC导航菜单
- 插件
- 鼠标悬浮跟随
- 简单的Material Design风格手机App菜单特效
- 动画