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() + "%;"

  • 相关阅读:
    二分法排序
    GDB调试命令
    X264编译
    ffmpeg编译
    css-icons
    Javascript组成--ECMAScript,DOM,BOM
    9 Utils
    8 移动端填坑
    7 媒体查询( Media Queries )
    css3--rem
  • 原文地址:https://www.cnblogs.com/eagle-xie/p/6612588.html
Copyright © 2011-2022 走看看