📜 ⬆️ ⬇️

How to use Internet Explorer 8 to test sites in IE6 and IE7

The SelenIT habraiser has already written about something similar. But the Australian developer Elbert F. offers a new way to test the site "in IE6" using a piece of PHP-code.

Personally, I'm not really worried about how my sites look in IE6, 7, or 8. If I suddenly want to see this, I have a magic button . And for those who are worried, there are ways to test the site in these browsers.

Method number 1 (more difficult)


If you have Windows XP or an earlier version, you can use the standalone version of IE6 . If you have Windows 7 (not beta), you can use Microsoft's free IE Application Compatibility VPC Image to run XP with IE6 or 7 in a virtual machine. If you have a different operating system (Windows Vista, Mac OS, Linux) and still have a Windows XP license, you can run it using a virtual machine like VirtualBox .
')

Method number 2 (simpler)


Those who have IE8 - for you there is a simpler way. The Compatibility View will display pages as in IE7, and a missing doctype will cause your IE8 to show sites, as IE6 would do in compatibility mode .
You can simply remove the doctype from your web pages for testing in IE6. Or, if you are using PHP, add a simple switch to them:
<?php if ( !isset($_GET['ie6']) ): ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
strict.dtd">
<?php endif ?>

Source: https://habr.com/ru/post/75276/


All Articles