bootstrap PrintThis打印效果图:
如图,这个是调用了谷歌的打印,使用很方便,可以自己調样式,需要的可以研究一下,这边贴出使用方法。
附上GitHub:https://github.com/jasonday/printThis
jsp:
二维码
js:
$("#btn_print").click(function(event) {
$("#qrcode").printThis({
debug: false,
importCSS: false,
importStyle: false,
printContainer: true,
// loadCSS: "/Content/Themes/Default/style.css",
pageTitle: "二维码",
removeInline: false,
printDelay: 333,
header: null,
formValues: false
});
// alert("等待打印");
});
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



