我想通过单击按钮来隐藏交叉表。我已经创建了一个文本元素,在其中,我调用一个javascript来将行和交叉表的display属性设置为none。该行是一个固定的高度,我已设置单元格的overflow属性滚动,以便交叉表不会转到下一页
以下是交叉表最初的样子
问题在于,当我为行和交叉表设置display:none时,我仍然可以看到带有滚动条的空iframe,如下所示。
document.getElementById("crtGridRow").style.display = "none";
document.getElementById("crosstab").style.display = "none";
这仅在Internet Explorer中发生。在FF和其他浏览器中,它隐藏得很好
现在这是第二个问题。当通过另一个按钮时,我将显示屏转为阻止
document.getElementById("crtGridRow").style.display = "block";
document.getElementById("crosstab").style.display = "block";
在Internet Explorer中,交叉表及其数据显示正常,但在FF和其他浏览器中,交叉表未显示。相反,我可以看到一个似乎是交叉表空间的空白空间,但我只看到一个空格
有人可以帮我解决这个问题吗
阿里夫