通过JS隐藏一个DIV的代码 |
您所在的位置:网站首页 › 隐藏js源代码 › 通过JS隐藏一个DIV的代码 |
通过JS隐藏一个DIV的代码
function toggle(targetid){ if (document.getElementById){ target=document.getElementById(targetid); if (target.style.display=="block"){ target.style.display="none"; } else { target.style.display="block"; } } } #div1{ background-color:#000000; height:200px; width:200px; display:none; } 居中的DIV posted on 2012-05-29 21:11 _o~ 努力! 阅读(4650) 评论(0) 编辑 收藏 举报 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |