diff --git a/css/services.css b/css/services.css index 7587aae..4e6bdda 100644 --- a/css/services.css +++ b/css/services.css @@ -29,6 +29,10 @@ .services-content{ background-color: #fff; } +.services_bgF7F8FA{ + background-color: #F7F8FA; + width: 100%; +} /*tab sta */ .services-wrap{ height: 680px; @@ -41,19 +45,22 @@ background: url("../images/services_saasIco.png") no-repeat; width: 542px; height: 494px; - margin-top: 102px; - margin-left: 10px; + /*width: 100%;*/ + margin: 102px auto 0; } .services-wrap-right-1{ width: 543px; + /*width: 100%;*/ height: 400px; - margin-top: 177px; - margin-left: 78px; + margin: 177px auto 0; + /*margin-left: 20px;*/ + /*margin-left: 78px;*/ } /*1----tab 右侧 切换部分 sta*/ .services-soft-wrap{ height: 168px; - width: 100%; + /*width: 100%;*/ + width: 543px; border-bottom: 2px solid rgba(228,229,229,1);; } .services-soft-wrap li { @@ -96,7 +103,7 @@ background: url(../images/services_titico3_active.png) no-repeat center 0; } /*1------tab 右侧 cont*/ -.services-section-wrap,.services-section-user{ +.services-section-wrap,.services-section-user,.services-section-park{ height: 100px; margin-top: 58px; width: 400px; @@ -121,27 +128,91 @@ } /*----2------ tab sta*/ - +/*2 tab*/ +.services-wrap-left-2{ + width: 543px; + /*width: 100%;*/ + height: 400px; + margin: 165px auto 0; + margin-left: 20px; +} +.services-wrap-right-2{ + background: url("../images/services_parkIco.png") no-repeat; + width: 558px; + /*width: 100%;*/ + height: 574px; + margin: 67px auto 0; + /*margin-left: 10px;*/ +} +/*-------2---*/ +.services-park-wrap{ + height: 168px; + width: 543px; + /*width: 100%;*/ + border-bottom: 2px solid rgba(228,229,229,1);; +} +.services-park-wrap li { + color: rgba(6,14,19,.8); + font-size:20px; + cursor: pointer; + height: 168px; + width: 133px; +} +.services-park-wrap li:nth-of-type(1) { + padding-top: 114px; + background: url(../images/services_titico4.png) no-repeat center 0; + margin-right: 72px; +} +.services-park-wrap li:nth-of-type(1).active { + color: #3F9FFE; + padding-bottom: 22px; + border-bottom: 2px solid rgba(63,159,254,1); + background: url(../images/services_titico4_active.png) no-repeat center 0; +} +.services-park-wrap li:nth-of-type(2) { + padding-top: 114px; + background: url(../images/services_titico5.png) no-repeat center 0; + margin-right: 72px; +} +.services-park-wrap li:nth-of-type(2).active { + color: #3F9FFE; + padding-bottom: 22px; + border-bottom: 2px solid rgba(63,159,254,1); + background: url(../images/services_titico5_active.png) no-repeat center 0; +} +.services-park-wrap li:nth-of-type(3) { + padding-top: 114px; + background: url(../images/services_titico6.png) no-repeat center 0; +} +.services-park-wrap li:nth-of-type(3).active { + color: #3F9FFE; + padding-bottom: 22px; + border-bottom: 2px solid rgba(63,159,254,1); + background: url(../images/services_titico6_active.png) no-repeat center 0; +} /*----3------ tab sta*/ -/*1 tab*/ +/*---3 tab*/ .services-wrap-left-3{ background: url("../images/services_userIco.png") no-repeat; width: 568px; + /*width: 100%;*/ height: 593px; - margin-top: 67px; - margin-left: 10px; + margin: 67px auto 0; + /*margin-left: 10px;*/ } .services-wrap-right-3{ width: 543px; + /*width: 100%;*/ height: 400px; - margin-top: 165px; - margin-left: 50px; + margin: 165px auto 0; + margin-left: 20px; } /*-------3---*/ .services-user-wrap{ height: 168px; - width: 100%; + width: 543px; + /*width: 100%;*/ border-bottom: 2px solid rgba(228,229,229,1);; } .services-user-wrap li { diff --git a/js/services.js b/js/services.js index a385954..b003d76 100644 --- a/js/services.js +++ b/js/services.js @@ -6,10 +6,19 @@ $('#services-soft-wrap li').on('click',function () { $('#services-soft-wrap li').eq(_index).addClass('active').siblings().removeClass('active') $('#services-section-wrap>li').eq(_index).removeClass('displaynone').siblings().addClass('displaynone') }); + +//车场 tab 切换 +$('#services-park-wrap li').on('click',function () { + var _index = $(this).index(); + console.log(_index) + $('#services-park-wrap li').eq(_index).addClass('active').siblings().removeClass('active') + $('#services-section-park>li').eq(_index).removeClass('displaynone').siblings().addClass('displaynone') +}); + //车主 tab 切换 $('#services-user-wrap li').on('click',function () { var _index = $(this).index(); console.log(_index) $('#services-user-wrap li').eq(_index).addClass('active').siblings().removeClass('active') $('#services-section-user>li').eq(_index).removeClass('displaynone').siblings().addClass('displaynone') -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/services.html b/services.html index 75b9c12..0f3d381 100644 --- a/services.html +++ b/services.html @@ -64,60 +64,116 @@