如何调整 Safari 的 Web Inspector 窗格的高度?

发布于 2025-01-02 20:45:26 字数 204 浏览 1 评论 0原文

有谁知道如何设置 Safari 的 Web Inspector 的高度?它大约占据了我的浏览器窗口的 75%,所以我每次都必须手动调整它的大小。这是显示问题的屏幕截图: http://cl.ly/1W33123t1U0k101r2g00

有什么想法吗?

Does anyone know how to set the height of Safari's Web Inspector? It takes up about 75% of my browser window, so I have to resize it manually each time. Here's a screenshot showing the problem: http://cl.ly/1W33123t1U0k101r2g00

Thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

上课铃就是安魂曲 2025-01-09 20:45:26

出色地,
对我来说,Chrome 不是一个选择,但有一个解决方案:
我遇到了同样的问题,发现如果我完全执行以下过程,我可以设置“停靠”检查器的高度:

  • 打开任何网页
  • 调用检查器(Command-Option- I)
  • 通过单击停靠/取消停靠图标来取消停靠检查器
  • 将其取消停靠高度宽度更改为您想要的大致高度对接,并且宽度大致相同作为您的浏览器窗口;确保也更改其位置(向任何方向移动一点以确保记录所有参数)
  • 关闭未停靠检查器
  • 再次调用检查器(Command-Option-I - 未更改) )
  • 将 Inspector
  • 停靠退出 Safari。

现在应该坚持下去
启动 Safari 并享受新的停靠 Inspector 的窗口高度。

基本上,停靠的 Inspector 的高度与未停靠的 Inspector 的高度大致相同......

奇怪的是,我找不到首选项在 com.apple.Safari.plist 文件中...
我认为它可能是变量:

NSWindow Frame Web Inspector 2

但更改其值没有任何效果(我认为链接到该变量的值按顺序为:

(left, bottom, width, height, 0, 0, available-width, available-height)

Well,
For me, Chrome is not an option, and there is a solution:
i was having the same problem and found that, if i did exactly the following procedure, i managed to set the height of the 'docked' Inspector:

  • Open any web page
  • Call the Inspector (Command-Option-I)
  • Undock the Inspector by clicking the dock/undock icon
  • Change its Undocked height and width to roughly a height that you would like when it is docked, and roughly the same width as your browser window; make sure to change its position too (move it a little in any direction to make sure all params are recorded)
  • Close the Undocked Inspector
  • Call the Inspector again (Command-Option-I --hasn't changed)
  • Dock the Inspector
  • Quit Safari.

That should now stick
Launch Safari and enjoy your new docked Inspector's window height..

Basically, the height of the docked Inspector is about the same as that of the undocked Inspector....

Strangely, i couldn't find the preference in the com.apple.Safari.plist file...
i thought it might be the variable:

NSWindow Frame Web Inspector 2

but changing its values did not have any effect (i think that the values linked to that variable are, in order:

(left, bottom, width, height, 0, 0, available-width, available-height)
陪我终i 2025-01-09 20:45:26

你唯一能做的就是使用 chrome 而不是 safari。从 safari 5.0 开始就检测到此问题。以前情况更糟,因为每当您打开 Web 检查器时,它都会在一个独立的窗口中打开。我认为它可能会在 safari 的下一个版本中得到修复。

The only thing you can do about it is using chrome instead of safari. This issue has been detected since safari 5.0 . It was even worse before, because whenever you opened web inspector it opened in an independent window. I think it will probably be fixed in the next version of safari.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文