0
我想打印我的网页,其内容是纸张大小为F4或Folio的字母,但在浏览器中打印时总是打印A4/Letter尺寸的文件时出现问题。如何使其默认为F4或Folio,以便用户不必再次设置纸张尺寸打印设置?反正没有设置为F4的浏览器中的大小....用php/css/javascript/jquery打印带F4大小的网页?
感谢提前和本我的代码:
HTML
<html>
<head>
<title>Coba Print</title>
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
</head>
<body>
....here the letter
</body> </html>
Print.css
html{
width: 8.5in;
height: 13in;
}
body{
width: 6.5in;
padding: 0;
margin: 1in 1in 1in 1in;
font-size: 12pt;
page-break-inside: avoid;
}
screen.css
body{
background: #aaa;
}
但浏览器设置中没有F4大小... *喜欢在图像^ –