【多选题】在JavaScript中,以下()能隐藏id为flower的div
A. document.getElementById("flower").style.display="none"; B. document.getElementById("flower").style.display="hidden"; C. document.getElementById("flower").style.visibility="none"; D. document.getElementById("flower").style.visibility="hidden"
A. document.getElementById("flower").style.display="none"; B. document.getElementById("flower").style.display="hidden"; C. document.getElementById("flower").style.visibility="none"; D. document.getElementById("flower").style.visibility="hidden"
举一反三
- 在javascript中,以下让“b2”图片隐藏且不占页面位置的是( ) A: document.getElementById(“b2”).style.visibility=”visible”; B: document.getElementById(“b2”).style.visibility=”hidden”; C: document.getElementById(“b2”).style.display=”none”; D: document.getElementById(“b2”).style.visibility=”block”;
- 通过javascript控制id=“d1”的div隐藏,使用的代码是( ) A: document.getElementById(“d1”).style.show = “false”; B: document.getElementById(“d1”).style.show = “none”; C: document.getElementById(“d1”).style.display = “false” D: document.getElementById(“d1”).style.display = “none”;
- 通过javascript控制id=“d1”的div隐藏,使用的代码是( ) A: document.getElementById(“d1”).style.show = “false”; B: document.getElementById(“d1”).style.show = “none”; C: document.getElementById(“d1”).style.display = “false” D: document.getElementById(“d1”).style.display = “none”;
- javascript中,有一个id为flower的输入框,下面正确的获取这个输入框的语法是? A: document.getElementById("flower") B: document.getElementByName("flower") C: document.getElementsClassName("flower")
- 要通过脚本代码设置盒子div1为显示状态,需要使用的代码是 A: document.getElementById('div1').display='block' B: document.getElementById('div1').style.display='none' C: document.getElementById(div').style.display='block' D: document.getElementById('div1').style.display='block'