zoukankan      html  css  js  c++  java
  • ReportViewer 自适应高度

    

    ReportViewer 不能直接通过 JS 来改变其高度,可以在 ReportViewer 的外面加 DIV,设置 ReportViewer 的高度为 100%,用 JS 控制外围的DIV高度来实现自适应。

    <div id="divList" style="height: 100px;">
                    <rsweb:ReportViewer ID="rvwOnHandInventory" runat="server" Font-Names="Verdana" ProcessingMode="Remote"
                        Font-Size="8pt" Width="100%" Height="100%">
                        <ServerReport ReportPath="/Kingston.SOEM.Reporting/OnHandInventoryReport" />
                    </rsweb:ReportViewer>
    </div>

    <script type="text/javascript">
            $(function () {
                $("#divList").css("height", "600px");
            });
    </script>



  • 相关阅读:
    Shell IFS
    Crontab
    linux awk
    free
    条件语句练习2
    条件语句练习
    打印菜单
    条件测试语法
    read 命令
    jQuery(实例)
  • 原文地址:https://www.cnblogs.com/abccome/p/4395426.html
Copyright © 2011-2022 走看看