Browse Source

Merge branch 'master' of git.proginn.com:zaixianjiaoyu/sourcecode

Go 5 years ago
parent
commit
81049a03cb
1 changed files with 3 additions and 6 deletions
  1. 3 6
      front/project/www/components/Select/index.less

+ 3 - 6
front/project/www/components/Select/index.less

@@ -40,20 +40,19 @@
     overflow: hidden;
     position: absolute;
     bottom: 0;
-    left: 0;
-    right: 0;
+    left: 50%;
     background: #fff;
     border: 1px solid @line_color;
     border-radius: 4px;
     box-sizing: border-box;
     opacity: 0;
     z-index: 2;
-    transform: translateY(100%);
+    transform: translate(-50%, 100%);
 
     .select-option {
       height: 0;
       line-height: 25px;
-      padding-left: 10px;
+      padding: 0 10px;
       border-bottom: 1px solid transparent;
       font-size: 12px;
       cursor: pointer;
@@ -143,7 +142,6 @@
     }
 
     .select-option {
-      padding: 0;
       text-align: center;
       border: none;
     }
@@ -193,7 +191,6 @@
     }
 
     .select-option {
-      padding: 0;
       text-align: center;
       line-height: 30px;
       border: none;