소스 검색

轮播样式和顺序调整

huangb 7 년 전
부모
커밋
065771fd0d
3개의 변경된 파일11개의 추가작업 그리고 7개의 파일을 삭제
  1. 5 5
      src/main/webapp/WEB-INF/views/normal/index.html
  2. 4 0
      src/main/webapp/resources/css/index.css
  3. 2 2
      src/main/webapp/resources/js/index/app.js

+ 5 - 5
src/main/webapp/WEB-INF/views/normal/index.html

@@ -119,8 +119,8 @@ var _hmt = _hmt || [];
 				<li data-target="#carousel-example-generic" data-slide-to="6"></li>
 				<li data-target="#carousel-example-generic" data-slide-to="7"></li>
 				<li data-target="#carousel-example-generic" data-slide-to="8"></li>
-				<li data-target="#carousel-example-generic" data-slide-to="9"></li>
-                <li data-target="#carousel-example-generic" data-slide-to="10"></li>
+				<!--<li data-target="#carousel-example-generic" data-slide-to="9"></li>-->
+                <!--<li data-target="#carousel-example-generic" data-slide-to="10"></li>-->
 			</ol>
 
 			<!-- Wrapper for slides -->
@@ -177,8 +177,8 @@ var _hmt = _hmt || [];
 						</div>
 					</div>
 				</div>
-				<div class="item carousel-item4">
-					<img src="static/img/carousel/header-12.png" alt="" />
+				<!--<div class="item carousel-item4">-->
+					<!--<img src="static/img/carousel/header-12.png" alt="" />-->
 					<!--<div class="carousel-caption">-->
 						<!--<div class="container">-->
 							<!--<div class="header-text">-->
@@ -189,7 +189,7 @@ var _hmt = _hmt || [];
 							<!--</div>-->
 						<!--</div>-->
 					<!--</div>-->
-				</div>
+				<!--</div>-->
 				<div class="item carousel-item10">
 					<img src="static/img/carousel/header-11.jpg" alt="" />
 					<div class="carousel-caption">

+ 4 - 0
src/main/webapp/resources/css/index.css

@@ -334,4 +334,8 @@ header .carousel-caption .header-btn a:last-child{
 	font-size: 16px;
 	color: #f85659;
 	border: 1px solid #fff;
+}
+.carousel-inner>.item>img, .carousel-inner>.item>a>img{
+	margin: 0 auto;
+	text-align: center;
 }

+ 2 - 2
src/main/webapp/resources/js/index/app.js

@@ -13,9 +13,9 @@ $(function() {
 			case '/finance':
 				$('.carousel').carousel(4); break;
 			case '/public':
-				$('.carousel').carousel(8); break;
+				$('.carousel').carousel(7); break;
 			case '/member':
-				$('.carousel').carousel(9); break;
+				$('.carousel').carousel(8); break;
 			case '/help':
 				$('.carousel').carousel(7); break;
             case '/uuzcJob':