java chrome 控制台_Chrome开发者工具:在单独的视图/垂直平铺中查看控制台和源视图?...

垂直分割

您可以取消开发人员工具(通过单击左下角的图标),将其移动到新窗口 . 然后按Esc打开控制台 .

窗口和“小型控制台”都可以调整大小以满足您的需求 .

66d70108-0edb-4756-b615-9b07d1e96a68.jpg

水平分割

如果您希望控制台在右侧而不是底部,请通过编辑path / to / profile / Default / User StyleSheets / Custom.css来自定义开发人员工具,并添加以下规则:

编辑:已删除对 Custom.css 的支持,但仍可以使用新的API, chrome.devtools.panels.applyStyleSheet 方法(sample code)更改开发人员工具的样式 .

/* 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;

}

结果如下:

4237e8b2-67e1-4e69-a52d-0bd0aa2f6a66.jpg

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值