以下页面在屏幕和打印中的尺寸均应为A4,但第一行在屏幕上以0180190200
结尾,在打印的pdf中以01801902002
结尾。
我想自己调试它,但是media emulate print
在这里的作用是零。
<!doctype html>
<html lang="en">
<head>
<title>Test Printing</title>
<meta charset="utf-8">
<style>
@page {
size: A4;
margin: 0;
padding: 0;
border: 0;
}
body {
width: 210mm;
margin: 0;
padding: 0;
word-wrap: break-word;
font-size: 20px;
font: "Courier New";
}
</style>
</head>
<body>001002003004005006007008009010011012013014015016017018019020021022023024025026027028029030031032033034035036037038039040041042043044045046047048049050051052053054055056057058059060061062063064065066067068069070071072073074075076077078079080081082083084085086087088089090091092093094095096097098099100</body>
</html>
有人可以帮忙吗?