The following function reveals several hidden rows in a table. It's works great in all tested Browsers except IE7. (I am using Prototype.js)
function sh开发者_运维知识库owInactives(){
var row_list = $$('tr.inactive');
var ck =$('inactive_check').checked;
for (i = 0 ; i < row_list.length; i++){
if (ck) row_list[i].style.display = "table-row";
else row_list[i].style.display = "none";
}
}
In IE, each hidden row simply remains hidden. If I alert each row's display style, it shows up as "table-row" but it just wont' show up.
How do I get IE7 to reveal these hidden rows if it does not understand display:table-row ?
Thanks in advance, Dave
Try setting display to ""
. IE is picky about tables in general.
精彩评论