JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Web Design 版  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 列印區塊? [精華]
chanhouw





發文: 57
積分: 2
於 2005-04-02 01:26 user profilesend a private message to usersend email to chanhouwreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
想請教一下~
該如何在網頁列印時指定某一區塊?

在此感謝指教~~


reply to postreply to post
作者 Re:列印區塊? [Re:chanhouw]
chanhouw





發文: 57
積分: 2
於 2005-04-02 02:33 user profilesend a private message to usersend email to chanhouwreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
已經解出來了 ! 謝謝 !

reply to postreply to post
作者 Re:列印區塊? [Re:chanhouw]
browser

戀香

版主

發文: 3570
積分: 1
於 2005-04-02 11:57 user profilesend a private message to usersend email to browserreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
chanhouw wrote:
已經解出來了 ! 謝謝 !


可以分享一下嗎 ?
我也蠻好奇的 ...


reply to postreply to post
作者 Re:列印區塊? [Re:browser]
abgne





發文: 323
積分: 2
於 2005-04-02 13:58 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
browser wrote:
可以分享一下嗎 ?
我也蠻好奇的 ...


是用div或是span來造成區塊嗎@@?

麻煩賜教..


reply to postreply to post
作者 Re:列印區塊? [Re:chanhouw]
chanhouw





發文: 57
積分: 2
於 2005-04-02 23:45 user profilesend a private message to usersend email to chanhouwreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
2
3
4
5
6
7
8
9
10
11
12
13
<script language="javascript"> 
      function printScreen(block)
      {        
        var value = block.innerHTML;
        var printdetail = window.open("","printDetail","");
        printdetail.document.open();
        printdetail.document.write("<HTML><head></head><BODY onload='window.print()'>"); 
        printdetail.document.write("<PRE>"); 
        printdetail.document.write(value); 
        printdetail.document.write("</PRE>");
        printdetail.document.close("</BODY></HTML>");
      }
    </script>


然後將您要印出的區塊用<div>包起來 !
這是我唯一想到的方法 !Dead


chanhouw edited on 2005-04-04 01:56
reply to postreply to post
作者 Re:列印區塊? [Re:chanhouw]
abgne





發文: 323
積分: 2
於 2005-04-03 02:48 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
哈哈~能解決問的的就是..高招Cool

reply to postreply to post
» JWorld@TW »  Web Design 版

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8