简体   繁体   English

Firebug在打印预览中不起作用

[英]Firebug not working in print preview

I am writing print CSS for my site. 我正在为我的网站编写打印CSS。 Now the problem is that Firebug or similar devtools don't work in the browser's print preview. 现在的问题是Firebug或类似的devtools在浏览器的打印预览中不起作用。 So it's hard for me to detect the problem. 因此,我很难发现问题。

Does anyone have a suggestion how to debug CSS print layout? 有人建议如何调试CSS打印布局吗?

The Chrome DevTools can do this by changing the Media CSS option in the Emulation menu. Chrome DevTools可以通过更改“ 仿真”菜单中的“ 媒体CSS”选项来实现。

Check this out: Suggestions for debugging print stylesheets? 检查一下: 有关调试打印样式表的建议?

On Firefox you must select the Display CSS by Media Type option with the Web Developer add-on and then Firebug will work. 在Firefox上,您必须选择带有Web Developer加载项的“ 按媒体类型显示CSS”选项,然后Firebug将起作用。 There's also an enhancement request for Firebug to support switching between different media types . 要求Firebug支持在不同媒体类型之间切换

Check this out, too: How do you debug printable CSS? 也请检查以下内容: 如何调试可打印CSS?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM