引入lodop插件
引入webuploader.js
代码:
var LODOP; //定义用来点击打印时调用的函数 function myPrintSetup1(datasNum) { CreatePage1(datasNum); //纸张大小 LODOP.SET_PRINT_PAGESIZE(1,2300,1520,''); LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' width='102%' src='<?php echo Yii::$app->params['staticUrl']; ?>img/newsswl.jpg'/>"); LODOP.SET_PRINT_STYLEA('a',"FontSize",14); LODOP.SET_PRINT_STYLEA('b',"FontSize",14); LODOP.SET_PRINT_STYLEA('c',"FontSize",10); LODOP.SET_PRINT_STYLEA('d',"FontSize",10); LODOP.SET_PRINT_STYLEA('e',"FontSize",10); LODOP.SET_PRINT_STYLEA('f',"FontSize",10); LODOP.SET_PRINT_STYLEA('g',"FontSize",10); LODOP.SET_PRINT_STYLEA('h',"FontSize",10); LODOP.SET_PRINT_STYLEA('i',"FontSize",10); LODOP.