瀏覽代碼

大屏对齐问题

laiguoran 3 年之前
父節點
當前提交
baf4915ee1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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',