用
document.all.testdiv.style.visibility = "hidden";//隐藏
和
document.all.testdiv.style.visibility = "visible";//可见
代替原来的试试
document.all.testdiv.style.visibility = "hidden";//隐藏
和
document.all.testdiv.style.visibility = "visible";//可见
代替原来的试试
解决方案 »
- 求JS或者JQUERY实现拖动DIV交换位置的代码,加急!~
- 版主请进 有个colorbox的问题
- 求帮忙改一段 JS
- 哪位大哥帮忙进来看一下,给一个对应的解密算法
- iframe中的表格只左右移动,并且不管怎么左右移动左边都紧靠着iframe的边界,不留下白色的空隙
- 赋值的textarea能分行显示吗?
- 请教这个要怎么实现····按标签分类搜索
- 请高手解释一段js代码的含义(拆解),谢谢!
- 各位兄弟帮忙
- 非常急:如何控制图片再网页上自由旋转如顺时针45度,90度等。我们部门几个同事都说在网页上不能实现。我想可能用java脚本能完成,可是具
- 对于一个给定的网址,如何枚举改网页全部的frame?(网页有N个frame,每个frame又有层数不等的frame)
- 求西班牙语字符的unicode 范围
变化后:代码如下:
<body>
<table align="center" width="510" height="386" border="1" cellpadding= "0" cellspacing= "0">
<tr>
<td colspan="3"><table width="510" height="33" border="1" cellpadding= "0" cellspacing= "0" style="position:relative">
<tr>
<td width="61" height="33"> </td>
<td> </td>
<td width="111"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" width="510" height="25"><table width="510" height="25" border="1" cellpadding= "0" cellspacing= "0" style="position:relative">
<tr>
<td width="10" > </td>
<td width="490" > </td>
<td width="10"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" height="328"><table width="510" height="328" border="1" cellpadding= "0" cellspacing= "0">
<tr>
<td width="10"></td>
<td><table width="490" height="328" border="1" style="position:relative" cellpadding= "0" cellspacing= "0">
<tr>
<td height="102"><div style="background-image:url(qie2/01.jpg); width:452px; height:102px; position:absolute; left: 16px; top: 4px;">
</div></td>
</tr>
<tr>
<td height="102"><div style="background-image:url(qie2/01.jpg); width:452px; height:102px; position:absolute; left: 14px; top: 114px;"></div></td>
</tr>
<tr id="testdiv">
<td height="102"><div style="background-image:url(qie2/01.jpg); width:452px; height:102px; position:absolute; left: 14px; top: 223px;"></div></td>
</tr>
</table></td>
<td width="10"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="73" height="13"></td>
<td width="364"></td>
<td width="73"></td>
</tr>
</table>
<input type="button" name=hiddendiv value="隐藏" onClick="javascript:return document.all.testdiv.style.display='none'">--------<换成document.all.testdiv.style.visibility = "hidden";空白位置肯定存在,我希望的效果是没空白位置>
<input type="button" name=showdiv value="显示"onClick="javascript:return document.all.testdiv.style.display='block'">
</body>