日期:2014-05-16  浏览次数:20296 次

新手问个小问题
<input   type= 'button '   onclick= 'pp() '   value= 'submit '>
<div   id= "comment "   style= "display:none; "> <br> hello   world! <br> </div>
   
<script>
    function   pp(){
document.getElementById( "comment ").display= 'block '  
    }    
</script>
点击按钮之后没反映,不知道该怎么测试.谁帮我解决下,十分感谢!~

------解决方案--------------------
document.getElementById( "comment ").style.display= 'block '