我无法设置固定的HTML大小在A4大小的纸张上打印。每当内容中的数据大小发生变化时,打印格式
我想你可以在这里找到你正在搜索的东西:[字体不带图片][
].list li {
list-style: none;
border-bottom: 1px dotted #ccc;
text-indent: 25px;
height: auto;
padding: 10px;
text-transform: capitalize;
}
.list li:hover {
background-color: #f0f0f0;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
}
)链接
经典asp不打印a4尺寸,这是HTML和CSS的职责,它们为打印构建页面。
为每个页面创建分段,并使用下面的代码来调整页边距、高度和宽度。
如果打印的是A4尺寸
Size : 8.27in and 11.69 inches
@page Section1 {
size:8.27in 11.69in;
margin:.5in .5in .5in .5in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;
}
div.Section1 {
page:Section1;
}
然后创建一个div,其中包含所有内容。
<div class=Section1>
type your content here...
</div>
你可以在这里找到更多关于打印样式表和如何使用它们的信息