liting2017 6 years ago
parent
commit
1a3441c6f2
2 changed files with 23 additions and 16 deletions
  1. 18 11
      src/css/inded.css
  2. 5 5
      src/js/newMenu/index.js

+ 18 - 11
src/css/inded.css

@@ -116,26 +116,25 @@ border-radius: 5px;margin-top:15px;float: right;text-align: center;color:#1596E8
 }
 .initModel div{
     position: fixed;
-    left: 50%;
-    top: 50%;
-    width: 600px;
+    left: 0;
+    top:10%;
+    width: 100%;
     height: 0px;
     background: url(../../img/index/initModelBj.png) no-repeat;
     background-size:100% 100%;
-    transform: translate(-50%,-50%);
     overflow: hidden;
     transition: all .2s ease-in; 
     z-index:99999999991 ; 
 }
 .initModel.active div{
-    height: 400px;
+    height:80%;
     transition: all .2s ease-in-out;
 }
 .initModel.active {
     height:100%;
 }
 .initModel .glyphicon-remove{
-    position: fixed;
+    position: absolute;
     font-size: 30px;
     color: #fff;
     right: 20px;
@@ -152,14 +151,22 @@ border-radius: 5px;margin-top:15px;float: right;text-align: center;color:#1596E8
     position: absolute;
     color: #fff;
     font-size: 16px;
-    left: 50%;
+    left: 52%;
     transform: translateX(-50%);
-    bottom: 70px;
+    bottom: 20%;
 }
 .initModel .ljZhuCe {
     position: absolute;
     color: #fff;
-    font-size: 18px;
-    right: 12px;
-    top: 170px;
+    font-size: 40px;
+    right:7%;
+    top: 45%;
+    transform: translateY(-50%);
+}
+@media screen and (max-width:1600px){
+   
+    .initModel .ljZhuCe{
+        font-size: 26px!important;
+        right:8.5%;
+    }
 }

+ 5 - 5
src/js/newMenu/index.js

@@ -78,10 +78,10 @@ import 'js/public.js';
 			$(this).parents('.initModel').removeClass('active');
 			sessionStorage['initVal']=true;
 		})
-		if($('.initModel').hasClass('active')){
-			setTimeout(()=>{
-				$('.initModel .glyphicon-remove').trigger('click');
-			},5000)
-		}
+		// if($('.initModel').hasClass('active')){
+		// 	setTimeout(()=>{
+		// 		$('.initModel .glyphicon-remove').trigger('click');
+		// 	},10000)
+		// }
 	}
 }())