JS语言

    <script type="text/javascript">

        function display(id){
            var traget=document.getElementById(id);
            if(traget.style.display=="none"){
                traget.style.display="";
            }else{
                traget.style.display="none";
          } 
       }
    </script>

  

HTML

<input type="submit" value="在线支付" onclick="display('lb')">
<div id="lb" style="display:none">
	<font>div属性:style ="display:none" 默认隐藏div</font>
</div>