垂直分割
您可以取消停靠开发人员工具(通过单击左下角的图标),将其移至新窗口。然后按Esc打开控制台。
窗口和“小控制台”都可以调整大小以满足您的需求。
![垂直拆分开发工具的屏幕截图](https://i.stack.imgur.com/8bTcKm.png)
水平分割
如果您更喜欢将控制台放在右侧而不是底部,请通过编辑自定义开发人员工具path/to/profile/Default/User StyleSheets/Custom.css
,并添加以下规则:
编辑:对 的支持Custom.css
已被删除,但仍然可以使用新的 APIchrome.devtools.panels.applyStyleSheet
方法(示例代码)更改开发人员工具的样式。
/* If drawer has been expanded at least once AND it's still expanded */
#-webkit-web-inspector #main[style*="bottom"]:not([style*="bottom: 0"]) {
width: 50%;
bottom: 0 !important;
}
#-webkit-web-inspector #drawer[style*="height"]:not([style*="height: 0"]) {
/* The position of the drawer */
left: 50% !important;
/* styles to position the #drawer correctly */
top: 26px !important;
height: auto !important;
z-index: 1;
border-left: 1px solid rgb(64%, 64%, 64%);
}
#-webkit-web-inspector.show-toolbar-icons #drawer[style*="height"]:not([style*="height: 0"]) {
top: 56px !important;
}
结果如下所示:
![水平拆分开发工具的屏幕截图](https://i.stack.imgur.com/mEQmgm.png)