<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[A.PAO designSTUDIO BLOG]]></title> 
<link>https://blog.apao.idv.tw/index.php</link> 
<description><![CDATA[A.PAO designSTUDIO 阿保工作室]]></description> 
<language>zh-tw</language> 
<copyright><![CDATA[A.PAO designSTUDIO BLOG]]></copyright>
<item>
<link>https://blog.apao.idv.tw/post//</link>
<title><![CDATA[Bo-Blog 金流插件收據列印方式與CSS調整]]></title> 
<author>apao &lt;apao@www.apao.idv.tw&gt;</author>
<category><![CDATA[BO-BLOG]]></category>
<pubDate>Mon, 21 Dec 2020 00:08:05 +0000</pubDate> 
<guid>https://blog.apao.idv.tw/post//</guid> 
<description>
<![CDATA[ 
	<span style="font-size: 130%;">我們製作的Bo-Blog 金流插件也有個列印收據的功能，為符合客戶需求，客戶因為有許多收據單，希望能夠不列印收據表格，把需要的文字資料列印出來。針對這個選項，介紹一下我們在金流插件中的選項與列印功能。</span><br/><br/>備註：因為每一家印表機功能與列印界線的問題，原始設定為另外一台雷射印表機，後來客戶搬家使用另外一台印表機，使用者設定被安裝驅動程式後改變，所以需要在使用者端調整。<br/><br/>▼後台中的列印<br/><a href="https://blog.apao.idv.tw/attachment.php?fid=4066" target="_blank"><img src="https://blog.apao.idv.tw/attachment.php?fid=4066" class="insertimage" alt="點擊在新視窗中瀏覽此圖片" title="點擊在新視窗中瀏覽此圖片" border="0"/></a><br/>▼Chrome中的列印選項，不想印背景卻出現背景<br/><a href="https://blog.apao.idv.tw/attachment.php?fid=4070" target="_blank"><img src="https://blog.apao.idv.tw/attachment.php?fid=4070" class="insertimage" alt="點擊在新視窗中瀏覽此圖片" title="點擊在新視窗中瀏覽此圖片" border="0"/></a><br/>▼Firefox中可能的狀況，出現不需要的網址、頁數等資訊<br/><a href="https://blog.apao.idv.tw/attachment.php?fid=4074" target="_blank"><img src="https://blog.apao.idv.tw/attachment.php?fid=4074" class="insertimage" alt="點擊在新視窗中瀏覽此圖片" title="點擊在新視窗中瀏覽此圖片" border="0"/></a><br/><br/>▼Chrome中的列印選項（更多選項->背景圖形->取消選項）<br/>就可以不列印背景圖片<br/><a href="https://blog.apao.idv.tw/attachment.php?fid=4071" target="_blank"><img src="https://blog.apao.idv.tw/attachment.php?fid=4071" class="insertimage" alt="點擊在新視窗中瀏覽此圖片" title="點擊在新視窗中瀏覽此圖片" border="0"/></a><br/>▼Firefox中的列印選項（瀏覽器 列印->頁面設定->邊界與頁首/頁尾->空白）<br/><a href="https://blog.apao.idv.tw/attachment.php?fid=4075" target="_blank"><img src="https://blog.apao.idv.tw/attachment.php?fid=4075" class="insertimage" alt="點擊在新視窗中瀏覽此圖片" title="點擊在新視窗中瀏覽此圖片" border="0"/></a><br/><br/><span style="font-size: 120%;">另外在程式端為了盡量減低使用者出差錯，必須盡量事前設定好讓使用者不需要再設定的CSS</span><br/>▼除了將頁面顯示設定一般使用px，這時就可以針對A4紙來做設定，也可以使用cm來做設定，前提是在body的style要事前設定好margin、padding、border<br/>orphans和widows用於指定在頁面的底部或頂部，元素中允許剩餘的最少行數，默認為2行。<br/><div class="code">@page &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*A4直印*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; size: A4 portrait;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*列印範圍*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; margin: 0.5cm;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*頂部行數*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; orphans:4;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*頁尾行數*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; widows:2;<br/>&#125;</div><br/><div class="code">@page &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*A4橫印*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; size: A4 Landscape;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*列印範圍*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; margin: 0.5cm;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*頂部行數*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; orphans:4;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*頁尾行數*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; widows:2;<br/>&#125;</div><br/>▼對應列印上則使用@media print<br/><div class="code">@media print &#123;<br/>body&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*不列印背景*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; background:none;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*不超頁列印*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; page-break-inside:avoid;<br/>&#125;<br/>a::after &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; /*顯示列印網址*/<br/>&nbsp;&nbsp;&nbsp;&nbsp; content: &quot;(&quot; attr(href) &quot;)&quot;; <br/>&#125;<br/>&#125;</div><br/><br/>▼針對客戶換印表機後做了多次修改的其中的筆記<br/><a href="https://blog.apao.idv.tw/attachment.php?fid=4082" target="_blank"><img src="https://blog.apao.idv.tw/attachment.php?fid=4082" class="insertimage" alt="點擊在新視窗中瀏覽此圖片" title="點擊在新視窗中瀏覽此圖片" border="0"/></a><br/><br/>更詳盡的參考資料：<br/>英文<br/><a href="https://www.w3.org/TR/2003/WD-css3-page-20030909/" target="_blank">https://www.w3.org</a><br/>簡中<br/><a href="http://lon.im/post/css-print.html" target="_blank">http://lon.im/</a><br/>Tags - <a href="https://blog.apao.idv.tw/tags/%25E9%2587%2591%25E6%25B5%2581/" rel="tag">金流</a> , <a href="https://blog.apao.idv.tw/tags/%25E6%258F%2592%25E4%25BB%25B6/" rel="tag">插件</a> , <a href="https://blog.apao.idv.tw/tags/%25E6%2594%25B6%25E6%2593%259A/" rel="tag">收據</a> , <a href="https://blog.apao.idv.tw/tags/%25E5%2588%2597%25E5%258D%25B0/" rel="tag">列印</a> , <a href="https://blog.apao.idv.tw/tags/print/" rel="tag">print</a> , <a href="https://blog.apao.idv.tw/tags/css/" rel="tag">css</a> , <a href="https://blog.apao.idv.tw/tags/%25E8%25AA%25BF%25E6%2595%25B4/" rel="tag">調整</a>
]]>
</description>
</item><item>
<link>https://blog.apao.idv.tw/post//#blogcomment</link>
<title><![CDATA[[評論] Bo-Blog 金流插件收據列印方式與CSS調整]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[評論]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.apao.idv.tw/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>