Jump to content
  • 0

Печать html странички на 891*630 мм


Ser8191
 Share

Question

Здравствуйте.

Имеется блок размером 891*630 мм

Если верить конвертеру величин, то 1 мм = 3.779527559055 пиксель

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8" />
  <title>HTML5</title>
<style type="text/css">
body {
margin:0;
background:#FFFFFF;
}
div#block {
margin:0 0 0 0;
border: 1px solid #5698C9;
}



</style>
script type="text/javascript">
var w=891;
var h=630;
 function myFunction() {
document.getElementById("block").style.width = w*3.780952380952381+"px";
document.getElementById("block").style.height = h*3.781144781144781+"px";
document.getElementById("w").innerHTML=w*3.780952380952381;
document.getElementById("h").innerHTML=h*3.781144781144781;

}
 </script>
  </head>
 <body onload="myFunction()">
<div id="block">
<div id="w"></div>
<div id="h"></div>
</div>
 </body>
</html>

 

Нажимаю печать, получаю только две страницы

5a929845e938b_.thumb.png.07d21f7457811140a8dccca38be46dfe.png

Как мне получить на печать 9 листов формата А4? (297*210)

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

А чего вы сразу не используете mm вместо пикселей? Таблица №3 https://webref.ru/css/value/size

А печать наверное от принтера зависит

http://printerprofi.ru/raznoe/kak-raspechatat-kartinku-na-neskolko-listov-a4.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy