设置了style.display="none"后,怎么连着html中的内容都没了....
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>style样式</title> </head> <body> <h2 id="con">I love JavaScript</H2> <p> JavaScript使网页显示动态效果并实现与用户交互功能。</p> <script type="text/javascript"> var mysty=document.getElementById("con"); mysty.style.color="red"; mysty.style.backgroundColor="#CCC"; mysty.style.display="none"; </script> </body> </html>