Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
570 views
in Technique[技术] by (71.8m points)

macos - How can I test my web pages in Microsoft Internet Explorer on a Mac?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...