在IE6中显示和隐藏表格 [英] show and hide table in IE6
问题描述
您好我正在使用IE6浏览器。我想在某些条件下显示和隐藏。我试图使用下面的代码来显示和隐藏表格
document.getElementById(crCurrSlotTbl)。style.display =table//显示表格
document.getElementById(crCurrSlotTbl)。style.display =none; //隐藏表格
但它在IE8中工作得很好,但它不能正常工作IE6。我已经尝试过各种解决方案,比如将它们包装在div标签中,但它们都不起作用。
任何人都可以帮我解决这个问题吗?有没有解决这个问题的方法?
试试这个,
自Microsoft Internet Explorer 5起,块
和内联
值均受到明确支持。
document.getElementById(crCurrSlotTbl)。style.display =block;
参考: http://msdn.microsoft.com/en-us/library/ie/ms530751%28v=vs.85%29。 aspx
Hi I am using the IE6 browser. I want to show and hide on certain conditions. I have tried to use the below code to show and hide the table
document.getElementById("crCurrSlotTbl").style.display="table" //show the table
document.getElementById("crCurrSlotTbl").style.display="none"; //hide the table
But it is working as fine in the IE8 but it is not working fine with IE6. I have tried various solutions such as wrapping it around the div tag than but neither of them work.
Can anybody please help me with the work around of this problem ? Is there any workaround with this problem?
Try this,
The block
and inline
values are supported explicitly as of Microsoft Internet Explorer 5.
document.getElementById("crCurrSlotTbl").style.display="block";
Ref: http://msdn.microsoft.com/en-us/library/ie/ms530751%28v=vs.85%29.aspx
这篇关于在IE6中显示和隐藏表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!