IE 页面设置里没有像火狐一样的绽放选择 如何缩放打印? 高手请出现吧!!!!

IE 页面设置里没有像火狐一样的绽放选择 如何缩放打印? 高手请出现吧!!!!,第1张

您好!很高兴为您答疑!
火狐浏览器可以实现打印缩放的,在d出的打印对话框中,选定打印机后,在打印机的首选项里有设置。
您可以在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。

jsp中实现打印预览和打印设置的方法如下:
1、ajsp是要打印的页面
<html>
<head>
<script language="javascript">
function fmtPrint(printPlace,w,h){
var sarg=new Array();
var sdata=documentallitem(printPlace);
sarg[0]=sdataouterHTML;
windowshowModalDialog("printjsp",sarg,"dialogWidth:"+w+"px;dialogHeight:"+h+"px;center:yes;help:no;status:no;resizable:yes");
return;
}
</script>
</head>
<body>
<div id="printPlace">
希望打印的内容写在里面





</div>
<img onClick="fmtPrint('printPlace', 800, 600);" name="Print" border="0" style="cursor:hand" src="images/dayingif">
</body>
</html>
2、printjsp是打印预览页面
<html>
<head>
<base target="_self">
<script language="javascript">
<!--
var dada = dialogArguments;
var da1 = dada[1];
function loaddatas(){
var tagBody;
var pf = documentallitem('printfield');
pfinsertAdjacentHTML('beforeEnd',da1);

var removeRadio = documentalltags("input");
for(var i=0; i<removeRadiolength; i++){
tagBody = removeRadio[i];
if (tagBodygetAttribute("type") == "radio"||tagBodygetAttribute("type") == "checkbox")
{
tagBodystyledisplay = 'none';
}
}

var removeHref = documentalltags("A");
for(var i=0; i<removeHreflength; i++){
tagBody = removeHref[i];
if (tagBodygetAttribute("href") != null)
{
tagBodysetAttribute("href","javascript:void(0)");
}
}

var removeImg = documentalltags("img");
for(var i=0; i<removeImglength; i++){
tagBody = removeImg[i];
if ( tagBodyname != 'printButton' )
{
tagBodystyledisplay = 'none';
}
}
return;
}
function startprint(){
documentallitem("startbutt")styledisplay='none';
windowprint();
windowclose();
return;
}
//-->
</script>
</head>
<body leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" onload="javascript:loaddatas();" style="word-break:break-all">
<table align="center">
<tr>
<td align="center" id="printfield"></td>
</tr>
</table>
<table width="100%" id="startbutt">
<tr>
<td align=center>
<a onclick="javascript:startprint();"><img border="0" name="printButton" src="images/dayingif" style="vertical-align:middle; cursor:hand"></a>
</td>
</tr>
</table>
</body>
</html>


欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/yw/12930499.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2025-08-28
下一篇2025-08-28

发表评论

登录后才能评论

评论列表(0条)

    保存