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"); ?>'
]
});
});
});