当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Hide element issue

问题描述:

So I am trying to hide a DIV that sits inside a td. Issue I am facing is that the attached code fades the div perfect fine but the table space stays there. How do I make this table space disappear completely?

Table:

<table width="100%" id="myTabDiv">

<tr><td align="center"><div id="innerDiv"> This disappears </div></td> </tr>

</table>

网友答案:

Just to clarify, the solution was to wrap the table in another div and hide that div instead.

分享给朋友:
您可能感兴趣的文章:
随机阅读: