js中设置控件的隐藏与显示
2020-12-13 04:09
标签:style c color a get cti function displayHideUI() js中设置控件的隐藏与显示,搜素材,soscw.com js中设置控件的隐藏与显示 标签:style c color a get cti 原文地址:http://www.cnblogs.com/huchaoheng/p/3731877.html
{
var ui
=document.getElementById("bbs");
ui.style.display="none";
}
function displayShowUI()
{
var ui
=document.getElementById("bbs");
ui.style.display="";//display为空的话会好使,为block会使后边的空间换行
}
function visibilityHideUI()
{
var ui
=document.getElementById("bbs");
ui.style.visibility="hidden";
}
function visibilityShowUI()
{
var ui
=document.getElementById("bbs");
ui.style.visibility="visible";
}