macos 在 Mac 上测试 IE 网页设计的最佳方式?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6906061/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Best way to test a webdesign for IE on a Mac?
提问by Sacha
I'm currently designing a website on a Mac. The design works fine in Chrome, Safari and Firefox. Now I'm about to test it with different versions of Internet Explorer. The problem is that I don't have access to a Windows machine at the moment. What's the best way to test a webdesign for IE on a Mac?
我目前正在 Mac 上设计一个网站。该设计在 Chrome、Safari 和 Firefox 中运行良好。现在我准备用不同版本的 Internet Explorer 测试它。问题是我目前无法访问 Windows 机器。在 Mac 上测试 IE 网页设计的最佳方法是什么?
回答by Fabio Nolasco
I use BrowserStack.com, which is pretty cool. But the debugging tool (Firebug) gets really slow on IE7 and IE8.
我使用 BrowserStack.com,这很酷。但是调试工具 (Firebug) 在 IE7 和 IE8 上变得非常慢。
So here it is a way to have IE7, 8 and 9 working in your mac:
所以这是一种让 IE7、8 和 9 在你的 Mac 上工作的方法:
1) Download & Install VirtualBox
1) 下载并安装 VirtualBox
2) Launch the Terminal (located in /Applications/Utilities/)
2)启动终端(位于/Applications/Utilities/)
3) Decide which versions of Internet Explorer you want to download and install – each version of Internet Explorer is contained within a separate virtual machine that runs within VirtualBox. In other words, if you want to run Internet Explorer 7, 8, and 9, you will need to download three separate VM's, which may take a while so keep that in mind. Select the text below and copy it:
3) 决定您要下载和安装的 Internet Explorer 版本——每个版本的 Internet Explorer 都包含在一个单独的虚拟机中,该虚拟机在 VirtualBox 中运行。换句话说,如果您想运行 Internet Explorer 7、8 和 9,您将需要下载三个单独的 VM,这可能需要一段时间,因此请记住这一点。选择下面的文本并复制它:
3.1) Install ALL versions of Internet Explorer: IE7, IE 8, and IE 9
3.1) 安装所有版本的 Internet Explorer:IE7、IE 8 和 IE 9
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| bash
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| 猛击
3.2)Install Internet Explorer 7 Only
3.2) 仅安装 Internet Explorer 7
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| IEVMS_VERSIONS="7" bash
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| IEVMS_VERSIONS="7" bash
3.3) Install Internet Explorer 8 Only
3.3) 仅安装 Internet Explorer 8
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| IEVMS_VERSIONS="8" bash
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| IEVMS_VERSIONS="8" bash
3.4)Install Internet Explorer 9 Only
3.4) 仅安装 Internet Explorer 9
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| IEVMS_VERSIONS="9" bash
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh| IEVMS_VERSIONS="9" bash
Copy and paste the selected command from above into the Terminal and hit return, this will start the download and conversion process. How long this takes depends on your internet connection and how many versions of Internet Explorer you chose to install Launch VirtualBox and boot Windows & Internet Explorer – select the virtual machine corresponding to the version of Internet Explorer you intend to use: IE7, IE8, IE9, then click on the “Start” button to boot that Windows machine with that version of Internet Explorer. Remember that the default Windows admin password is “Password1″, it's also the password hint within the VM should you forget it.
将上面选择的命令复制并粘贴到终端中,然后按回车键,这将开始下载和转换过程。这需要多长时间取决于您的 Internet 连接以及您选择安装的 Internet Explorer 版本数,然后单击“开始”按钮以使用该版本的 Internet Explorer 启动该 Windows 计算机。请记住,默认的 Windows 管理员密码是“Password1”,如果您忘记了它,它也是 VM 中的密码提示。
That's really all there is to it. These commands are part of the ievsms script from xdissent and it manages the entire download, conversion, and installation procedure, it doesn't get much easier.
这就是它的全部内容。这些命令是来自 xdissent 的 ievsms 脚本的一部分,它管理整个下载、转换和安装过程,并没有变得更容易。
VM Snapshots Circumvent Microsofts 30 Day LimitationThe other great thing about this method is that it circumvents Microsofts 30 day limitation by utilizing snapshots, a feature built into VirtualBox. This preserves the original Windows VM state and allows you to continuously use the IE virtual machine without any time limitation simply by reverting to the original snapshot once the 30 day lock occurs.
VM 快照规避 Microsoft 的 30 天限制这种方法的另一个好处是它通过利用快照规避了 Microsoft 的 30 天限制,这是 VirtualBox 中的一项功能。这将保留原始的 Windows VM 状态,并允许您在 30 天锁定发生后只需恢复到原始快照即可连续使用 IE 虚拟机而没有任何时间限制。
To use a snapshot after the 30 day Windows expiration, just open VirtualBox, select the IE VM, and click on the “Snapshots” button. From here you can boot from the original snapshot that was created and use IE again for another 30 days. You can do this indefinitely, effectively having a clean IE test environment forever.
要在 30 天 Windows 到期后使用快照,只需打开 VirtualBox,选择 IE VM,然后单击“快照”按钮。从这里您可以从创建的原始快照启动并再次使用 IE 30 天。您可以无限期地执行此操作,从而有效地永远拥有一个干净的 IE 测试环境。
Source:
来源:
http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/
http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/
回答by g_thom
You can use a virtual machine, such as VMWare (http://www.vmware.com/). Or you can use Wine (http://www.winehq.org/).
您可以使用虚拟机,例如 VMWare ( http://www.vmware.com/)。或者您可以使用 Wine ( http://www.winehq.org/)。
Both systems also allow you to then test IE7 and lower, possibly using IETester. I find IETester to be excellent.
这两个系统还允许您测试 IE7 及更低版本,可能使用IETester。我发现 IETester 非常出色。
I've used them both and they worked for my needs.
我已经使用了它们,它们满足了我的需求。
Crossover sounds interesting.
交叉听起来很有趣。
To get completely deluxe, you can download Firebug Lite (http://getfirebug.com/firebuglite), which lets you inspect the DOM kind of like Firebug. It's not quite as nice, but a good augmenter for Developer Tools in IE.
要获得完全豪华的体验,您可以下载 Firebug Lite ( http://getfirebug.com/firebuglite),它可以让您像 Firebug 一样检查 DOM。它不是那么好,但对于 IE 中的开发人员工具来说是一个很好的增强器。
回答by Chris Smith
You could use Adobe BrowserLab.
您可以使用Adobe BrowserLab。
回答by duskwuff -inactive-
Your options are basically, in order of quality:
您的选择基本上是按质量顺序排列的:
- Run Windows under virtualization.
- Run browsers remotely using a tool like browsershots.org.
- Ask a friend running Windows to look at the site for you.
- Run Explorer via WINE / Crossover Desktop.
- 在虚拟化下运行 Windows。
- 使用像 browsershots.org 这样的工具远程运行浏览器。
- 请运行 Windows 的朋友为您查看该站点。
- 通过 WINE / Crossover Desktop 运行 Explorer。
回答by Coxy
Install Crossover, which will allow you to run IE on your Mac without the overhead of a full VM.
安装 Crossover,这将允许您在 Mac 上运行 IE,而无需整个 VM 的开销。
http://www.codeweavers.com/compatibility/browse/name/?app_id=4225
http://www.codeweavers.com/compatibility/browse/name/?app_id=4225
I would try out the trial first, because IE8 is listed as "Bronze" compatibility level which is not the greatest.
我会先试用试用版,因为 IE8 被列为“青铜”兼容性级别,这不是最大的。
回答by 1kenthomas
If running under Wine, you will want to install each version of IE into its own prefix without other programs, and insure that various pre-requisites are available. Google for details.
如果在 Wine 下运行,您将希望在没有其他程序的情况下将每个版本的 IE 安装到其自己的前缀中,并确保各种先决条件可用。谷歌了解详情。
It works reasonably well then, though new wine updates often can cause it to crash-- alas.
它运行得相当好,尽管新的葡萄酒更新经常会导致它崩溃——唉。
回答by Kevin Leary
Oracle VirtualBoxworks very well. Working with it is pretty basic, and best of all it's free:
Oracle VirtualBox运行良好。使用它是非常基本的,最重要的是它是免费的:
- Download Oracle VirtualBox
- Install Internet Explorer
- Open Oracle VirtualBox
- Done!
- 下载 Oracle VirtualBox
- 安装 Internet Explorer
- 打开 Oracle VirtualBox
- 完毕!
For detailed instructions reference this Internet Explorer mac testing guide. There's no point in reposting everything here it's kind of detailed.
有关详细说明,请参阅此Internet Explorer mac 测试指南。在这里重新发布所有内容是没有意义的,它有点详细。
回答by Adam Tal
Update October 2012:
2012 年 10 月更新:
I just found browserling.com which seems to be quite convenient. Basic test are free, for more intensive once there's a subscription.
我刚刚找到了 browserling.com,这似乎很方便。基本测试是免费的,订阅后可以进行更密集的测试。
I used to test with Parallels, but I've grown tired of updating Windows versions (not to mention buying Windoes just for IE is ridiculous) and keeping up with IE version clashes etc. so a subscription based service seems to be a more convenient solution.
我曾经用 Parallels 进行测试,但我已经厌倦了更新 Windows 版本(更不用说为 IE 购买 Windoes 是荒谬的)和跟上 IE 版本冲突等。所以基于订阅的服务似乎是一个更方便的解决方案.
回答by bernk
I know this is old but for anyone who does this regularly enough a service like litmus.com is also an option. Of course having an actual install in some sort of virtual machine is the way to go if you're needing it a lot.
我知道这已经过时了,但对于那些经常这样做的人来说,像 litmus.com 这样的服务也是一种选择。当然具有某种虚拟机的实际安装是去,如果你需要它的方式很多。
回答by Chandler
The best way to run ie7 - ie10 on a mac that I found is to run oracle virtual machine and install all versions of the browswer. This route is completely free and runs outside the browser like some of these other options.
我发现在 Mac 上运行 ie7 - ie10 的最佳方法是运行 oracle 虚拟机并安装所有版本的浏览器。这条路线是完全免费的,并且像其他一些选项一样在浏览器之外运行。
The only downside to this method is it takes up a lot of space.
这种方法的唯一缺点是它占用了大量空间。
Here is the easy to follow tutorial:
这是易于遵循的教程:
http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/
http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/