Firefox 57 / Quantum: emulate print styles

老子叫甜甜 提交于 2019-12-18 08:26:34

问题


How can I emulate the media type "print" in the new Firefox Quantum dev console?

Tried to enable it somehow and searched the documentation but couldn't find any hints!


回答1:


I thought it's impossible. But suddenly have found answer in another topic:

  1. press Shift + F2 to get special browser console
  2. type "media emulate print"
  3. hit "Enter"

That's it.

[UPD] this console has gone starting from v62. There are tiny chances to get this feature back according to https://discourse.mozilla.org/t/how-to-media-emulate-print-without-developer-toolbar-gcli/30975




回答2:


After the GCLI (Developer Toolbar) has been removed, the feature is now once again available in the latest nightly version of Firefox. Print style emulation can now be toggled from the styles panel in the Inspector of the Developer Tools. It's the little page icon in the upper right, next to the buttons to change the hover state, toggle classes and add CSS rules (toggled active in the screenshot):

As of May 2019, this has not yet landed in the current stable release (66), but it is available in the current Developer Edition and the Nightly Channel (68.0a1 and above).

Update August of 2019 (v68)

Version 68 has landed in the stable release channel, so the feature is now available in all Firefox distributions.



来源:https://stackoverflow.com/questions/47877112/firefox-57-quantum-emulate-print-styles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!