getbodyclass IE问题magento(IE不接受这个类,但在mozilla和chrome工作正常)

时间:2015-02-12 07:41:06

标签: jquery html css magento

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>" dir="ltr">
<?php echo $this->getChildHtml('head') ?>
<body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?> class="background_art" 
<?php if($ruqest_uri !=$home_uri2 and $ruqest_uri !=$new_url and $ruqest_uri !=$new_uri ){ echo "style='background:none;'";  }?> <?php if($snv=="no"){ ?> onload="firsttimeload()" <?php } ?> >

 <?php echo $this->getChildHtml('after_body_start') ?>
<?php echo $this->getChildHtml('header') ?>

1 个答案:

答案 0 :(得分:0)

问题是这个

<body <?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?> class="background_art" ....>

生成

您需要将其更改为

<body <?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?> class="background_art <?php echo $this->getBodyClass()? $this->getBodyClass() : ''; ?>" ...>

然后它会产生

<body class="background_art ..something.." ...>