此打印样式表如何工作? [英] How does this print stylesheet work?

查看:113
本文介绍了此打印样式表如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很喜欢 http://www.honorshaven.com/ 印刷(pdf) 。我浏览了源代码,试图找出他们是如何做到的(我的导航总是变成丑陋的项目符号列表上的印刷...) - 我的损失。任何人都知道?任何帮助将是真棒!
感谢,
马丁

I really like how http://www.honorshaven.com/ looks printed (to pdf). I've looked through the source to try to figure out how they did it (my navigation always turns into ugly bullet lists on print...) -- and I'm at a loss. Anyone know? Any help would be awesome! Thanks, Martin

我熟悉打印样式表 - 但不是他们大多通过打印友好/打印我链接?在这种情况下,我只是去浏览器栏,选择打印。我相信我错过了一些愚蠢的东西,但我不知道什么...

I'm familiar with print stylesheets -- but aren't they mostly reached by a "print friendly"/"print me" link? In this case I'm just going up to the browser bar and choosing print. I'm sure I'm missing something stupid, but I don't know what...

推荐答案

指定用于打印的样式表。为此,请将介质类型设置为打印,而不是全部或屏幕。在此单独的样式表中,您可以隐藏导航菜单,更改字体,间距,边距等,并且它特定于打印输出。

You need to use a stylesheet designated for printing. To do this, set the media type to print instead of all or screen. In this separate stylesheet, you can hide your navigation menus, change your fonts, spacing, margins, etc. and it is specific to the print output.

这里有一篇关于ListApart的关于CSS打印样式表的文章

这篇关于此打印样式表如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆