<div id="biuuu_button">打印</div>
<div id="myPrintArea">
.....文本打印部分.....
</div>文本打印部分 我里面有个table   我写的css在表头 但是打印的时候css不管用了!
求高手指教!谢谢!

解决方案 »

  1.   

    好吧 这个问题解决了!只要把css 放在打印内容里就可以了!
      

  2.   

    你的页眉页脚是怎么去掉的~是用
    var hkey_root,hkey_path,hkey_key;    
              hkey_root="HKEY_CURRENT_USER";    
              hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
            try{
    var RegWsh = new ActiveXObject("WScript.Shell")
    hkey_key="header" 
    RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
    hkey_key="footer"
    RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
     }catch(e){}
               
    我printArea方法前面不好使~