如何使用 Safari 浏览器检查元素

我正在开发网站和创建应用程序。我想知道如何通过像 safari 这样的浏览器来检查一个元素。

在普通的 Chrome、 Firefox、 Explorer 或任何其他浏览器中,我们将右键单击鼠标按钮或按下函数键 F12来查看 Inspect Element。但是在 Safari 浏览器的案例中却没有发生这种情况。

分享你的想法!

237583 次浏览

In your Safari menu bar click Safari > Preferences & then select the Advanced tab.

Select: "Show Develop menu in menu bar"

Now you can click Develop in your menu bar and choose Show Web Inspector

See the detailed guide here for more info: LINK

You can also right-click and press "Inspect element".

EDIT As suggested by @dennis in the comments: If you dont see "Show Develop menu in menu bar" you may need to run DevToolsSecurity -enable in the console before the option is visible

in menu bar click on Edit->preference->advance at bottom click the check box true that is for Show develop menu in menu bar now a develop menu is display at menu bar where you can see all develop option and inspect.

Press CMD + , than click in show develop menu in menu bar. After that click Option + CMD + i to open and close the inspector

enter image description here