Browse Source

大屏对齐问题

laiguoran 3 năm trước cách đây
mục cha
commit
baf4915ee1

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

@@ -76,7 +76,7 @@ function tableScroll(tableid, hei, speed, len) {
         'height': hei + 'px'
         'height': hei + 'px'
     })
     })
     $(".tableid_").find('th').each(function(i) {
     $(".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({
     $(".tableid_").css({
         'position': 'absolute',
         'position': 'absolute',