Renxy 1 ano atrás
pai
commit
a2de50494f
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      public/rem.js

+ 1 - 1
public/rem.js

@@ -6,7 +6,7 @@
   var rootItem, rootStyle;
 
   function refreshRem() {
-    var width = docEl.getBoundingClientRect().width;
+    var width = docEl.getBoundingClientRect().height;
 
     //与淘宝做法不同,直接采用简单的rem换算方法1rem=100px
     var rem = (width * 100) / 2560;