Browse Source

增加移动端banner

zdd 6 years ago
parent
commit
5ff4258fb0

+ 28 - 0
CZKJ.GBRS2.WebMVC/Views/Home/Index.cshtml

@@ -6,6 +6,7 @@
6 6
     <link rel="stylesheet" href="/assets/css/newsIndex.css">
7 7
     <link rel="stylesheet" href="/assets/plugins/swiper/idangerous.swiper.css">
8 8
 }
9
+@*pcbanner*@
9 10
 <div class="banner">
10 11
     <div class="swiper-container" id="banner">
11 12
         <div class="swiper-wrapper">
@@ -44,6 +45,33 @@
44 45
         </ul>
45 46
     </div>
46 47
 </div>
48
+@*mobileBanner*@
49
+<div class="banner mobileBanner">
50
+    <div class="swiper-container" id="banner">
51
+        <div class="swiper-wrapper">
52
+            <div class="swiper-slide" style="background-image:url('/assets/homeImg/banner.jpg')">         <div class="txt"></div>
53
+            </div>
54
+            <div class="swiper-slide" style="background-image:url('/assets/homeImg/banner.jpg')">
55
+                <div class="txt"></div>
56
+            </div>
57
+            <div class="swiper-slide" style="background-image:url('/assets/homeImg/banner.jpg')">
58
+                <div class="txt"></div>
59
+            </div>
60
+        </div>
61
+        <ul class="swiper-pagination">
62
+            <li class="cur">
63
+            </li>
64
+            <li>
65
+            </li>
66
+            <li>
67
+            </li>
68
+        </ul>
69
+    </div>
70
+</div>
71
+
72
+
73
+
74
+
47 75
 <!-- 新闻和服务 -->
48 76
 <div class="w newsORserv" id="news">
49 77
     <div class="left fl">

+ 14 - 0
CZKJ.GBRS2.WebMVC/wwwroot/assets/css/newsIndex.css

@@ -2459,4 +2459,18 @@ textarea::-webkit-input-placeholder {
2459 2459
     #productRight .swiper-slide {
2460 2460
         height: 120px !important;
2461 2461
     }
2462
+}
2463
+
2464
+
2465
+/*切换轮播图*/
2466
+.mobileBanner{
2467
+    display:none;
2468
+}
2469
+@media(max-width:768px) {
2470
+    .banner{
2471
+        display:none;
2472
+    }
2473
+    .mobileBanner{
2474
+        display:block;
2475
+    }
2462 2476
 }