JavaScript IE浏览器展示pdf

工具

在这里插入图片描述

语法

		<div style="height: 95%;width: 1000px;text-align: center;margin: 5px auto;">
			<div id="pdf_div" style="width: 100%;height: 100%;">
			div>
		div>
    var divHtml = "";
	divHtml += "";
	divHtml += "";
	divHtml += "";		
	divHtml += "";		
	divHtml += "";		
	divHtml += "";
	$('#pdf_div').html(divHtml);
	// 打印
	var obj = document.getElementById('pdf_object');
	obj.Print();

你可能感兴趣的:(JavaScript,javascript,pdf,开发语言)