zoukankan      html  css  js  c++  java
  • 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() + "%;"

  • 相关阅读:
    作为一个程序猿,是不是经常会用到.chm文档,但是我们可能会遇到这样那样的问题,比如.chm文档打不开
    总结
    图片轮播的几种方式
    学习中于遇到的问题总结
    node 总结
    webpack 总结
    babel 的总结和理解
    关于css 的AST 语法树的理解
    js中的正则表达式
    八皇后
  • 原文地址:https://www.cnblogs.com/eagle-xie/p/6612588.html
Copyright © 2011-2022 走看看