简体   繁体   中英

Debug/inspect the print version of a web page

I'm working on a small part of a large web site. I'm having some problems with the print version of a page, which uses <css media="print"> . I wonder if there is a way of displaying the print version of the page in the browser, so that I can inspect it and find the errors.

如果您将样式表设置为“屏幕”而另一个设置为“打印”,则可以暂时将“打印”更改为“屏幕”。

扩展Web开发人员( http://chrispederick.com/work/web-developer/ )具有可以帮助您的显示打印样式功能。

I think you have to create another page which is optimized for printer (printer friendly page), and Just add $(document).ready(function() { window.print(); }); Then change the link to the 'print' button to this new file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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