在 IE 8 打印预览页面页面显示内容之间的空间。原始 html 文件的内容之间没有任何空格。也没有<br>
标签。请参考图片以供参考。Mozilla 显示 = 6 页,IE 显示 = 9 页。有没有人遇到过这个奇怪的问题??
问问题
1536 次
2 回答
0
您能否分享您要查看的链接?
尝试在您的打印 CSS 文件中添加以下内容
<link
href="http://www.your-domain.com/css/print.css"
rel="stylesheet"
type="text/css"
media="print" />
CSS:
html, body, div, span, object, iframe, h1, h2,
h3, h4, h5, h6, p, blockquote, pre, abbr, address,
cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol,
ul, li, fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, figcaption, figure, footer, header,
hgroup, menu, nav, section, summary, time, mark,
audio, video, container {
margin:0;
padding:0;
border:0;
outline:0;
background:transparent;
}
于 2013-08-15T15:58:25.037 回答