javascript设置DIV的显示与隐藏
window.onload=function()
{
var div=document.getElementById("div1")
div.style.display=div.style.display=="none"?"block":"none";
}
<div id="div1" style="display:none;"></div>
window.onload=function()
{
var div=document.getElementById("div1")
div.style.display=div.style.display=="none"?"block":"none";
}
<div id="div1" style="display:none;"></div>
本文标题:javascript设置DIV的显示与隐藏
本文链接:https://www.haomeiwen.com/subject/smeuuqtx.html
网友评论