【发布时间】:2016-01-21 00:23:34
【问题描述】:
使用 Adobe Indesign 可以获得这样的结果:
我尝试使用 css 获得相同的结果
<style type="text/css" media="print">
@page
{
size: auto; /* auto is the initial value */
margin: 0mm; /* this affects the margin in the printer settings */
}
body
{
background-color:#FFFFFF;
border: solid 1px black ;
margin: 0px; /* this affects the margin on the content before sending to printer */
}
</style>
但不可能将边距设置为 0。我总是在 4 边都有边距:
同样的事情,4 边的一些小白边...怎么了?
任何帮助将不胜感激。 JsFiddle:https://jsfiddle.net/L63dc1yd/
【问题讨论】:
标签: html css google-chrome printing margins