0
我使用Jqprint插件打印porpose無法呈現在打印預覽所有的條碼圖像
代碼打印條碼作爲
HTML代碼爲:
<div class="wrapper_template" id="print_template">
<div class="imageOutput" >
// Code for Printing barcode for different Products
</div>
</div>
JavaScript代碼爲:
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$(".print_link").click(function() {
$('#print_template').jqprint({ operaSupport: true });
return false;
});
});
</script>
但主要問題是無法呈現在打印預覽所有條碼圖像。 任何人都可以解決這個問題。 plz幫助我。
呈現爲圖像的條形碼或者是他們基於自定義字體,條形碼? – crickkills
其基於字體的條形碼,如果我嘗試打印條碼50一次時間,然後4-5條碼將在渲染 –
這將是很難診斷的問題,而不能看到代碼和字體小姐。有一個問題可能是因爲您的佈局中浮動不清除,所以您可以嘗試設置條形碼元素樣式以顯示:block;明確:兩者;另外,jqprint插件提供了一個參數importCSS,您可以嘗試將其設置爲true以及operaSupport。如果沒有任何幫助你應該嘗試不使用特殊字體進行打印,以查看是否打印了文本 - 如果沒有,您會發現它更像是佈局或CSS問題,而不是字體渲染問題。 – crickkills