<div media="print">
<table style="margin-left:auto; margin-right:auto;" width="100%">    
    <td>
        <center>
         
                <input id="print_button" type="button" value="列印" onClick="print_the_page();"
                    style="font-size: 12pt; width: 60px; height: 30px;"">        
            
            </center>
   </td>
</table>
</div>
<Script language="JavaScript">
function print_the_page(){
    document.getElementById("print_button").style.visibility = "hidden";    //顯示按鈕
    javascript:print();
    document.getElementById("print_button").style.visibility = "visible";   //不顯示按鈕

 


文章標籤

luway 發表在 痞客邦 留言(0) 人氣()