强制 Microsoft Edge DevTools 进入打印预览模式Force Microsoft Edge DevTools into Print Preview mode

打印 媒体查询 控制页面在打印时的外观。The print media query controls how your page looks when printed. 若要强制页面进入打印预览模式,To force your page into print preview mode:

  1. 选择 Control+Shift+P (Windows、Linux) 或 Command+Shift+P (macOS) 打开命令菜单Select Control+Shift+P (Windows, Linux) or Command+Shift+P (macOS) to open the Command Menu.

    命令菜单

  2. 键入 rendering ,选择 "显示呈现", 然后选择 EnterType rendering, choose Show Rendering, and then select Enter.

  3. "模拟 CSS 媒体"下,选择 "打印"。Under Emulate CSS media, choose print.

    打印预览模式

可以在此处显示和更改 CSS,就像任何其他网页一样。From here, you may display and change your CSS, like any other web page. 导航到"开始查看和更改 CSS"。Navigate to Get Started With Viewing And Changing CSS.

联系 Microsoft Edge 开发工具团队Getting in touch with the Microsoft Edge DevTools team

使用以下选项讨论帖子中的新功能和更改,或与 DevTools 相关的任何其他内容。Use the following options to discuss the new features and changes in the post, or anything else related to DevTools.

  • 使用“发送反馈”图标发送反馈,或在 DevTools 中选择Alt+Shift+I \ (Windows、Linux) 或 Option+Shift+I \ (macOS)。Send your feedback using the Send Feedback icon or select Alt+Shift+I (Windows, Linux) or Option+Shift+I (macOS) in DevTools.
  • 发推 @EdgeDevToolsTweet at @EdgeDevTools.
  • 我们想要的 Web 提交建议。Submit a suggestion to The Web We Want.
  • 若要提交有关本文的错误,请使用以下“反馈” 部分。To file bugs about this article, use the following Feedback section.

Microsoft Edge DevTools 中的“发送反馈”图标

备注

此页面的某些部分是根据 Google 创建和共享的作品所做的修改,并根据 Creative Commons Attribution 4.0 International License 中描述的条款使用。Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License.
原始页面位于此处,由 Kayce Basques\(Chrome DevTools & Lighthouse 的技术作家\)撰写。The original page is found here and is authored by Kayce Basques (Technical Writer, Chrome DevTools & Lighthouse).

Creative Commons License
本作品根据 Creative Commons Attribution 4.0 International License 获得许可。This work is licensed under a Creative Commons Attribution 4.0 International License.