有没有一种方法可以在没有 iPhone 的情况下在 iPhone 上测试网站?

发布于 2024-07-13 07:52:45 字数 214 浏览 2 评论 0原文

我想测试一个网站,看看它如何与 iPhone 配合使用,但我没有 iPhone 或 iPod touch。 有没有一种方法可以让我在不拥有网站的情况下测试网站的运行情况?

我真正想要的是修复 Stackoverflow 的 WMD markdown 编辑器在 iPhone 上的工作方式。 我听说超链接和图像提示创建得太高了。 我想我知道如何解决这个问题,但盲目地发展是相当困难的。

I want to test a website to see how it works with the iPhone but I don't own an iPhone or an iPod touch. Is there a way I can test how the site works on them without owning one?

What I'm really after is fixing how Stackoverflow's WMD markdown editor works on the iPhone. I hear that the hyperlink and image prompts are created too high. I think I know how to fix that but it's pretty tough to develop blind.

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

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

发布评论

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

评论(5

如痴如狂 2024-07-20 07:52:45

如果您拥有Mac,则可以下载iPhone模拟器附带的iPhone SDK。 它不仅适用于调试本机应用程序,还适用于浏览网页。

If you own a Mac, you can download the iPhone SDK which comes with an iPhone simulator. It works not only for debugging a native app but also for browsing the web.

风吹雪碎 2024-07-20 07:52:45

如果您的计算机上有 Safari,您可以在“首选项”>“开发”下启用“开发”菜单。 高级> 在菜单栏中显示“开发”菜单。

启用此功能后,您可以转到“开发”>“ 用户代理,并将用户代理字符串更改为您希望浏览器向 Web 服务器报告的设备。
通过将窗口大小调整为适当的宽度,您可以模拟网站在 iPhone 上的外观。

这样做的好处是速度很快,可以在 Windows 和 Mac 上运行,而且您不需要安装 iPhone SDK。 您还可以浏览特定于 iPhone 的网站版本,这些网站直接从您的 PC 捕获用户代理字符串。

缺点显然是 PC 上的 Safari 浏览器的运行速度比实际设备上更快(特别是在 JavaScript 性能方面); 它显示插件并显示实际 iPhone 操作系统上可能不可用的字体; 缺乏多点触控支持和滚动时“捕捉”到列; 无自动旋转; 没有多点触控/捏缩放; 小部件看起来会有所不同; ETC。

If you have Safari on your computer, you can enable the "Develop" menu under Preferences > Advanced > Show Develop Menu in Menu Bar.

With this enabled, you can go to Develop > User Agent, and change the user-agent string to the device you want your browser to report to the web server as.
By resizing the window to the appropriate width, you can emulate what the site will look like on the iPhone.

The upside of this is that it's quick, it works on both Windows and Mac, and you don't need the iPhone SDK installed. You can also browse iPhone-specific versions of websites that catch user-agent strings directly from your PC.

The downside is obviously your Safari browser on your PC will behave quicker than on the actual device (especially in regard to javascript performance); it displays plugins and shows fonts that may not be available on the actual iPhone OS; a lack of multi-touch support and "snapping" to columns while scrolling; no auto-rotation; no multi-touch/pinch-zoom; widgets will look different; etc.

离笑几人歌 2024-07-20 07:52:45

只是关于这个旧线程的通知 - 我们现在已经在 CrossBrowserTesting.com 上通过 vnc 在 iPhone 和 iPad 上启用了实时测试。
肯 - 创始人

Just a notice on this old thread - we have now enabled live testing on iPhones and iPads via vnc at CrossBrowserTesting.com.
Ken - Founder

国产ˉ祖宗 2024-07-20 07:52:45

Mac 上有一个模拟 iPhone 浏览器的免费应用程序:iPhoney

There is a free app on the mac that emulates the iPhone browser: iPhoney

做个ˇ局外人 2024-07-20 07:52:45

我并不声称所做的不仅仅是网络搜索,但问题似乎可以通过“iPhone网络应用程序模拟器”等几种产品来解决。

http://www.testiphone.com/

http://marketcircle.com/iphoney/

I don't purport to have done more than a web search, but the problem seems to be solved by several products that are "iPhone web app emulators."

http://www.testiphone.com/

http://marketcircle.com/iphoney/

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