Page inspector 3-pane mode - Firefox Developer Tools 编辑
This article explains how to use the Page Inspector's 3-pane mode.
Feature summary
From Firefox 62 onwards, the Page Inspector has a new mode available — 3-Pane mode. When activated, this allows you to see the following simultaneously:
- The HTML pane on the left hand side, as usual.
- The CSS Rules in the middle in their own separate pane, rather than as a tab.
- The other CSS related features — such as Computed styles view, Animations view, and Fonts view — in tabs on the right hand side, as usual.
Note: At narrower browser window widths, the tabs appear below the CSS Rules pane.
Having the CSS Rules in their own pane is very useful because it allows you to not only inspect your HTML and edit the CSS applied to it, but also see the effect this has on CSS features such as computed styles and grids in real time. You just need to have the relevant tab open to see the effect.
A brief walkthrough
The 3-pane inspector is disabled by default. It is enabled via a toggle control found in the tabs pane on the left hand side.
Press the toggle control to toggle between the 2- and 3-pane views.
With the 3-pane mode enabled, you can observe live changes in CSS features as you edit the rules applied to the page. For example, you could edit a CSS Grid property and observe the change immediately in the Grid Inspector.
Enabling the 3-pane inspector pre-Firefox 62
In earlier versions of Firefox (since Firefox 59/60), you can enable 3 pane mode in Release/Beta by going to about:config and flipping the following prefs to true
:
devtools.inspector.split-rule-enabled
— this switches 3-pane mode on and off.
devtools.inspector.split-sidebar-toggle
— this adds the UI toggle button that lets you toggle it on and off.
In Firefox 61, these preferences got renamed to:
devtools.inspector.three-pane-enabled
devtools.inspector.three-pane-toggle
You need to flip these two to true
in Release/Beta to test the feature in Firefox 61.
Note: The 3-pane inspector is already enabled in Nightly/Developer edition before Firefox 62.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论