document.all("tr1").style.display="block" document.all("tr1").style.display="none"
visibility只是在页面上看不见,但占用页面排版空间。 document.all("tr1").style.visibility="visible" document.all("tr1").style.visibility="hidden"