2
我正在使用jQuery printElement以打印div的內容。JQuery printElement在Internet Explorer中打印整個頁面
它在Safari,Chrome和Firefox上運行良好,但是當我嘗試使用Internet Explorer(所有版本)時,它僅打印整個頁面而不是div。這是爲什麼?我能做什麼?
下面是用來打印的代碼:
$('.print_button').each(function() {
$(this).click(function() {
$(this).closest('.details').find('.div_to_print').printElement({
pageTitle: '...',
overrideElementCSS: [
'<?php echo stylesheet_path("print.css"); ?>'
]
});
});
});