Przeglądaj źródła

大屏对齐问题

laiguoran 3 lat temu
rodzic
commit
baf4915ee1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/public/js/datacollect_scroll.js

+ 1 - 1
app/public/js/datacollect_scroll.js

@@ -76,7 +76,7 @@ function tableScroll(tableid, hei, speed, len) {
         'height': hei + 'px'
     })
     $(".tableid_").find('th').each(function(i) {
-        $(this).css('width', $('#' + tableid).find('th:eq(' + i + ')').width());
+        $(this).css('width', $('#' + tableid).find('th:eq(' + i + ')').innerWidth());
     });
     $(".tableid_").css({
         'position': 'absolute',