Browse Source

抽取样式

zhouna 3 years ago
parent
commit
2524b4f9dc
2 changed files with 6 additions and 2 deletions
  1. 5 1
      src/css/participle.less
  2. 1 1
      src/js/participle.js

+ 5 - 1
src/css/participle.less

@@ -330,6 +330,10 @@
         background: rgba(66, 143, 220, 0.25);
         
     }
+  	&.selected img{
+	  transform: rotate(180deg);
+	  top:19px;
+	}
 }
 .exampleInfo{
     color: #fff;
@@ -354,7 +358,7 @@
 .iconSlide{
     position: absolute;
     width: 14px;
-    top: 20px;
+    top: 13px;
     right: 15px;
 }
 .footer{

+ 1 - 1
src/js/participle.js

@@ -34,7 +34,7 @@ function appendCurrentII(currentIIList){
 
         }else{
             $(`.exampleInfo${index2}`).slideDown()
-            $(`.example.selected img`).attr('src','./images/iconUp.png')
+            //$(`.example.selected img`).attr('css','./images/iconUp.png')
         }
         
     });