如何调试可打印的CSS? [英] How do you debug printable CSS?
问题描述
我使用Firebug和IE开发工具栏来调试棘手的CSS问题。
I use Firebug and IE Developer Toolbar all the time to debug tricky CSS problems. But occasionally, a tricky bug comes up that only appears when you go to print the page.
您使用什么技术/工具来诊断这类问题?有没有办法在打印视图中更多地使用传统的CSS调试工具?
What techniques/tools do you use to diagnose problems like this? Is there a way to get more use out of traditional CSS debugging tools in print view?
更新:我已经使用PDF打印机,以避免浪费纸张;我的问题是,我无法右键单击打印的DOM。下面的一些其他答案是相当有帮助,谢谢。 : - )
Updated: I already use a PDF printer to avoid wasting paper; my problem is that I can't right-click on the printed DOM. Some of the other answers below are quite helpful, thanks. :-)
推荐答案
只是发现了 lee-penkman 关于Firefox中的新功能此处:在Firefox中按 Shift-F2
打开控制台,然后输入 media emulate print
。非常好!
Just found a comment by lee-penkman about a new feature in Firefox here: Press Shift-F2
in Firefox to open the console, then enter media emulate print
. Works absolutely great!
这篇关于如何调试可打印的CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!