如何在 Mac 上的 Microsoft Internet Explorer 中测试我的网页? [英] How can I test my web pages in Microsoft Internet Explorer on a Mac?

查看:16
本文介绍了如何在 Mac 上的 Microsoft Internet Explorer 中测试我的网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想测试我在所有现代版本的 Internet Explorer(6、7 和 8 测试版)中创建的网页,但我主要在 Mac 上工作,通常无法直接访问 PC.

解决方案

更新: Microsoft 现在为各种版本的 IE 提供虚拟机映像,这些映像可以在所有主要的 OS X 虚拟化中使用平台(VirtualBoxVMWare FusionParallels).

从以下位置下载适当的图像:https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

<小时>

在基于 Intel 的 Mac 上,您可以在虚拟机中运行 Windows.对于每个要测试的 IE 版本,您都需要一台虚拟机.

以下说明包括免费且合法的虚拟化软件和 Windows 磁盘映像.

  1. 下载一些虚拟机软件.我们将要使用的开发人员磁盘映像将与 VMWare FusionSun Virtual Box.VMWare 具有更多功能,但售价 80 美元,而 Virtual Box 则更基本,但对大多数用户免费(参见 Virtual Box 许可常见问题解答了解详情).
  2. 下载微软提供的 IE 开发者磁盘镜像:http://www.microsoft.com/downloads/...
  3. 使用 cabextract 提取磁盘映像,MacPorts 或作为源代码(感谢 Clinton>).
  4. http://www.kju-app.org/ 下载 Q.app 和将它放在您的/Applications 文件夹中(您将需要它来将磁盘映像转换为 VMWare/Virtual Box 可以使用的格式)

此时,该过程取决于您使用的 VM 软件.

Virtual Box 用户

  1. 在 Mac 上打开 Terminal.app(您可以在/Applications/Utilities 中找到它)并运行以下命令序列,将 input.vhd 替换为 VHD 的名称您开始的文件和 output.vdi 与您希望最终磁盘映像具有的名称:

    /Applications/Q.app/Contents/MacOS/qemu-img convert -O raw -f vpc "input.vhd" temp.binVBoxManage convertdd temp.bin "output.vdi"rm temp.binmv "output.vdi" ~/Library/VirtualBox/VDI/VBoxManage modifyvdi "output.vdi" 压缩

  2. 启动 Virtual Box 并创建一个新的虚拟机
  3. 选择刚刚创建的新 VDI 文件作为启动硬盘

VMWare fusion 用户

  1. 在您的 Mac 上打开一个 Terminal.app(您可以在/Applications/Utilities 中找到它)并运行以下命令,替换 input.vhdoutput.vmdk 带有您正在处理的 VHD 文件的名称以及您希望生成的磁盘映像具有的名称:

    /Applications/Q.app/Contents/MacOS/qemu-img convert -O vmdk -f vpc "input.vhd" "output.vmdk"mv "output.vmdk" ~/Documents/Virtual Machines.localized/

    这可能需要一段时间(在我的 2.4GHz Core 2 Duo MacBook w/2Gb RAM 上,每个磁盘映像大约需要 30 分钟).

  2. 启动 VMWare Fusion 并创建一个新的虚拟机
  3. 在高级磁盘选项中选择使用和现有磁盘"并找到您刚刚创建的 VMDK 文件

I want to test the web pages I create in all the modern versions of Internet Explorer (6, 7 and 8 beta) but I work mainly on a Mac and often don't have direct access to a PC.

解决方案

Update: Microsoft now provide virtual machine images for various versions of IE that are ready to use on all of the major OS X virtualisation platforms (VirtualBox, VMWare Fusion, and Parallels).

Download the appropriate image from: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/


On an Intel based Mac you can run Windows within a virtual machine. You will need one virtual machine for each version of IE you want to test against.

The instructions below include free and legal virtualisation software and Windows disk images.

  1. Download some virtual machine software. The developer disk images we're going to use are will work with either VMWare Fusion or Sun Virtual Box. VMWare has more features but costs $80, Virtual Box on the other hand is more basic but is free for most users (see Virtual Box licensing FAQ for details).
  2. Download the IE developer disk images, which are free from Microsoft: http://www.microsoft.com/downloads/...
  3. Extract the disk images using cabextract which is available from MacPorts or as source code (Thanks to Clinton).
  4. Download Q.app from http://www.kju-app.org/ and put it in your /Applications folder (you will need it to convert the disk images into a format VMWare/Virtual Box can use)

At this point, the process depends on which VM software you're using.

Virtual Box users

  1. Open a Terminal.app on your Mac (you can find it in /Applications/Utilities) and run the following sequence of commands, replacing input.vhd with the name of the VHD file you're starting from and output.vdi with the name you want your final disk image to have:

    /Applications/Q.app/Contents/MacOS/qemu-img convert -O raw -f vpc "input.vhd" temp.bin
    VBoxManage convertdd temp.bin "output.vdi"
    rm temp.bin
    mv "output.vdi" ~/Library/VirtualBox/VDI/
    VBoxManage modifyvdi "output.vdi" compact
    

  2. Start Virtual Box and create a new virtual machine
  3. Select the new VDI file you've just created as the boot hard disk

VMWare fusion users

  1. Open a Terminal.app on your Mac (you can find it in /Applications/Utilities) and run the following commands, replacing input.vhd and output.vmdk with the name of the VHD file you're working on and the name you want your resulting disk image to have:

    /Applications/Q.app/Contents/MacOS/qemu-img convert -O vmdk -f vpc "input.vhd" "output.vmdk"
    mv "output.vmdk" ~/Documents/Virtual Machines.localized/
    

    This will probably take a while (It takes around 30 minutes per disk image on my 2.4GHz Core 2 Duo MacBook w/ 2Gb RAM).

  2. Start VMWare Fusion and create a new virtual machine
  3. In the advanced disk options select "use and existing disk" and find the VMDK file you just created

这篇关于如何在 Mac 上的 Microsoft Internet Explorer 中测试我的网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆