可以把操作放到页面加载后事件afterload中执行,试一试。
示例:
<script type="text/javascript">
window.onload = function() {
var contentPane = document.getElementById('reportFrame').contentWindow.contentPane;
contentPane.on("afterload",
function() {
$("div[widgetname = REPORT0]").find("#frozen-center").css('overflow-x', 'hidden');
$("div[widgetname = REPORT0]").find("#frozen-center").css('overflow-y', 'hidden');
$("div[widgetname=REPORT0]").find("#frozen-north").css('overflow-x', 'hidden');
$("div[widgetname=REPORT0]").find("#frozen-north").css('overflow-y', 'hidden');
$("div[widgetname=REPORT0]").find(".reportContent").css('overflow-y', 'hidden');
$("div[widgetname=REPORT0]").find(".reportContent").css('overflow-x', 'hidden');
$("div[widgetname=REPORT0]").find(".reportContent").css('overflow-x', 'hidden');
});
}
</script>
参考文档:
https://help.finereport.com/doc-view-1178.html
https://help.finereport.com/doc-view-908.html