Bladeren bron

注册底部图片消失

HW 3 jaren geleden
bovenliggende
commit
52002bb61b
4 gewijzigde bestanden met toevoegingen van 26 en 21 verwijderingen
  1. 2 1
      .gitignore
  2. 1 1
      package.json
  3. 14 12
      src/css/register.css
  4. 9 7
      src/js/register.js

+ 2 - 1
.gitignore

@@ -29,4 +29,5 @@ clean.sh
 build
 .project
 .vscode
-dll
+dll
+.idea

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "aft-portal",
-  "version": "1.2.8",
+  "version": "1.2.10",
   "description": "",
   "main": "index.js",
   "scripts": {

+ 14 - 12
src/css/register.css

@@ -5,7 +5,7 @@ a,a:focus.a:hover{
 /*registered页面container的css*/
 .registered{width:100%;height:800px;
     background: linear-gradient(to right, #fc9950 50%,#ff633e);
-   
+
 }
 input:-webkit-autofill,
 input:-webkit-autofill:hover,
@@ -19,7 +19,7 @@ a:focus,a,a:hover {
 }
 .reg_con{width:1200px;height:770px;margin:0 auto;
     /* background-image:url(../../img/zhucebg5.jpg) ;*/
-} 
+}
 .clear_first{width:100%;height:1px;}
 .zhuce{width:1200px;height:535px;margin:0 auto;margin-top:56px;
     position: relative;}
@@ -70,7 +70,7 @@ font-size: 18px;font-weight: bold;letter-spacing:10px;}
 #protocol{visibility: hidden;}
 .picture{width:680px;height:535px;
     display: inline-block;position: absolute;top:0px;left:0px;background: url(../../img/indedImg/zhuce_bj.png)no-repeat;
-    background-size:100% 100%; 
+    background-size:100% 100%;
 }
 .denglu{width:400px;height:20px;text-align: right;display: inline-block;
 position: absolute;top:0;left:0;}
@@ -187,15 +187,15 @@ padding: 20px 50px;overflow-y: auto;box-shadow: 0 4px 10px 0 #777;}
     position: absolute;
     top: 35px;
     left: 70px;
-    transform: rotate(45deg); 
+    transform: rotate(45deg);
     z-index: 110;
-}   
+}
 #bottom{
     width: 100%;
-    
+
     background: url(../../img/bottom_bg22.png) no-repeat center center;
-    background-size:120% 100% ; 
-    
+    background-size:120% 100% ;
+
 }
 .text_center p,.text_top,.text_bottom,.text_bottom a,.text_top a{
     color: #383838
@@ -203,18 +203,20 @@ padding: 20px 50px;overflow-y: auto;box-shadow: 0 4px 10px 0 #777;}
 .text_bottom a:hover{
     color: #2ca7f3;
 }
-.cont_left img{
+.cont_left div{
+    margin-left: 155px;
     border: none;
     width: 40px;
     height: 40px;
     display: inline-block;
     background: url(../../img/dizhi1.png)no-repeat;
-    background-size:100% 100%; 
+    background-size:100% 100%;
 }
-.cont_center img{
+.cont_center div{
     width: 50px;
     height: 50px;
+    margin: 0 auto;
     display: inline-block;
     background: url(../../img/dianhua1.png)no-repeat;
-    background-size:100% 100%; 
+    background-size:100% 100%;
 }

+ 9 - 7
src/js/register.js

@@ -15,7 +15,7 @@ $(function () {
     //点击账号后面那个×,清空账号
     $(".log_del").click(function () {
         $("#username").focus().val("").css('color','#666');
-    });    
+    });
     var xieyi = $('#protocol').prop("checked", false);
     $('.sub').attr('disabled', true)
     $('.sub').css({
@@ -122,7 +122,7 @@ $(function () {
                 tipFun.call(this,false,'')
             }
         });
-       
+
         $('#userpassword2').blur(function () {
             var orepeat = $(this).val();
             var passw = $('#userpassword').val();
@@ -214,7 +214,7 @@ $(function () {
         })
     }
     var tt = 30;
-   
+
     $('#photo').click(function () {
         phopoVal=[];
         var ophoto = $('#usePhoto').val().trim();
@@ -270,10 +270,12 @@ $(function () {
             $('#msg').val('');
         }, 2000)
     }
-    //底部图片处理
+    //注册 底部图片处理
     footerImg()
     function footerImg(){
-        $('.cont_left img').attr('src','');
-        $('.cont_center img').attr('src','');
+        $('.cont_left img').css('display','none');
+        $('.cont_center img').css('display','none');
+        $('.cont_left div').css('display','block');
+        $('.cont_center div').css('display','block');
     }
-});
+});