IE 报表缩放后页面破版

需要自己添加IE的报表放大缩小的按钮

1.找到需要放大报表的位置

2.设置它为相对位置(absolute)

3.设置它的位置为(0,0) ,放大表格(zoom)

ReportViewer1为报表ReportViewer的ID

$("#ReportViewer1_fixedTable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table").height($("#hidHeight").val() * $('#zoom').val() / 100);
$("#ReportViewer1_fixedTable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table").width($("#hidWidth").val() * $('#zoom').val() / 100);
$("#ReportViewer1_fixedTable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.position = "absolute";
$("#ReportViewer1_fixedTable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.top = 0;
$("#ReportViewer1_fixedTable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.left = 0;
$("#ReportViewer1_fixedTable > tbody > tr:nth-child(4) > td:nth-child(3) > div > div:nth-child(1) > div > table> tbody > tr > td> table")[0].style.cssText = "zoom: " + $('#zoom').val() + "%;"

原文地址:https://www.cnblogs.com/eagle-xie/p/6612588.html