如何隐藏table但是又不让他占用页面上的空间

hxdhjsoo hxdhjsoo 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我要把table中的内容放到excel中显示
把table的属性设置为
<DIV ID="tablers" class="hiddenTD">
<table align=center border=1 cellspacing=0 cellpadding=0 style="VISIBILITY: hidden" class="9ptshenlan3">
<%
String [] columnName ={"SIM卡ID" , "操作员ID" ," 营业厅ID" ,"动态连接库ID" ,"电话号码" ,"序列号","ICCID" ,"IMSI","SIM卡状态" ,"BOSS状态"};
for (int i=0;i<columnName.length;i++)
{

%>
<td><%=columnName[i]%></td>
<%} %>
<tr>

<%
ArrayList list = (ArrayList)session.getAttribute("rresult");
if (list != null && !list.isEmpty())
{

Iterator iterator = list.iterator();
while(iterator.hasNext())
{
ArrayList temp = (ArrayList)iterator.next();

Iterator iterator2 = temp.iterator();
while(iterator2.hasNext())
{
%>
<td><%=(String)iterator2.next()%></td>
<%
}
%>
<tr>
<% }

}
%>
</table>
</DIV>
但是 在实际显示的效果 table还是占用了空间
我如何让这个table不占用空间
...全文
评论 5
收藏 已收藏
分享
返回顶部
hxdhjsoo
CSS 61,116 成员 60,701 内容