gpt4 book ai didi

ios - 在 iOS webview 中调试 HTML

转载 作者:行者123 更新时间:2023-12-02 09:29:54 26 4
gpt4 key购买 nike

Android 可以使用桌面 Chrome 的 Web 检查器来调试应用程序 WebView 中嵌入的 HTML/CSS 问题,只要您通过 USB 连接它们即可。

我一直在谷歌和这个网站上搜索,但找不到任何与此相关的信息。 iOS 中是否有类似的方法来检查 HTML/CSS 元素/规则?

因为有些问题只影响 webview,所以从 iOS Safari 查看无法重现某些问题。

最佳答案

您可以使用 Mac 上的 Safari 来执行此操作。首先,转到 iPhone 上的设置 → Safari → 高级。然后启用“Web Inspector”选项并按照说明在 Mac 上启用。

编辑:这仅适用于使用 Xcode 安装的应用程序。

Screenshot of iOS Safari settings advanced page with Web Inspector  option enabled. Explanation below that option reads "To use the Web Inspector, connect to Safari on your computer using a cable and access your iPhone from the Develop menu. You can enable the Develop menu in Safari’s Advanced Preferences on your computer."

关于ios - 在 iOS webview 中调试 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49911965/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com