Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery getbodyclass IE发行magento(即不接受该类,但在mozilla和chrome中工作良好)_Jquery_Html_Css_Magento - Fatal编程技术网

Jquery getbodyclass IE发行magento(即不接受该类,但在mozilla和chrome中工作良好)

Jquery getbodyclass IE发行magento(即不接受该类,但在mozilla和chrome中工作良好),jquery,html,css,magento,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<?

问题是这个

<!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') ?>
class=“背景艺术”…>
产生

你需要把它改成

<body <?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?> class="background_art" ....>
class=“背景艺术”…>
然后它就会产生

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

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