Wenn Sie Probleme bei der Darstellung im Internet Explorer 8 haben, gibt es eine schnelle Lösung. Über ein spezielles Metatag kann man den Internet Explorer 8 dazu veranlassen die Version 7 zu emulieren.
Metatag:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
In Magento gehen Sie nun wie folgt vor:
1. Öffnen Sie die Datei app/design/frontend/default/Ihr Theme/template/page/html/head.phtml.
2. Suchen Sie die Zeile:
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
3. Fügen Sie die folgende Zeile danach ein:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
In meinem Fall sieht die head.phtml wie folgt aus:
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design_modern
* @package Mage
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<title><?php echo $this->getTitle() ?></title>
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="description" content="<?php echo htmlspecialchars($this->getDescription()) ?>" />
<meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />
<meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
<link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
<script type="text/javascript">
//<![CDATA[
var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
//]]>
</script>
<?php echo $this->getCssJsHtml() ?>
<?php echo $this->getChildHtml() ?>
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
<?php echo $this->getIncludes() ?>
Bitte beachten: Das ist sicherlich keine dauerhafte Lösung. Aber wenn es schnell gehen muss reicht das vorerst aus. Sie können dann in Ruhe eine Browserweiche mit eigenem IE8 CSS entwickeln.
Anmerkung: Damit der Patch auch funktioniert ist zu beachten das title das einzige “normale Tag” ist was vor der Definition kommen darf (wie auch oben gezeigt). Weitere Infos zum Thema gibt es auf dem offiziellen Board von Microsoft® http://msdn.microsoft.com/de-de/library/cc817574.aspx
LG - Daniel