Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个由 PHP 生成的 HTML 文档(由于服务器上不支持 Office,因此无法使用 COM 对象!)大部分打印效果很好,尤其是在 Firefox 中...问题是 IE6 默认为'20' 的边距将内容推送到第二页 - 有一个简单的解决方法,将边距更改为 '10',效果很好,但作为长期解决方案并不理想。
任何解决方案将不胜感激,谢谢:)
您可以尝试创建一个单独的样式表仅用于打印。将此添加到您的头部元素:
<link rel="stylesheet" type="text/css" href="print.css" media="print" />