Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.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
Php 在Internet Explorer 8中打开我的网站时出现问题_Php_Html_Css_Wordpress_Internet Explorer - Fatal编程技术网

Php 在Internet Explorer 8中打开我的网站时出现问题

Php 在Internet Explorer 8中打开我的网站时出现问题,php,html,css,wordpress,internet-explorer,Php,Html,Css,Wordpress,Internet Explorer,嗯。。。我将尝试解释我的问题: 我创建了一个新网站,它在Firefox、Safari、Internet Explorer、Chrome中运行。。。但我发现了一个问题:当InternetExplorer具有高级别的安全性时,我的网站就不工作了 我不明白为什么,因为所有的文件都加载了,但是。。。这就像IE加载了文件但没有读取它们一样 下面是我的“header.php”: IE8中的高安全设置将禁止javascript运行-请参阅 因此,不会设置“activaMapa”变量,也不会加载html5sh

嗯。。。我将尝试解释我的问题:

我创建了一个新网站,它在Firefox、Safari、Internet Explorer、Chrome中运行。。。但我发现了一个问题:当InternetExplorer具有高级别的安全性时,我的网站就不工作了

我不明白为什么,因为所有的文件都加载了,但是。。。这就像IE加载了文件但没有读取它们一样

下面是我的“header.php”:



IE8中的高安全设置将禁止javascript运行-请参阅


因此,不会设置“activaMapa”变量,也不会加载html5shim,诸如此类。您对此所做的将取决于您是否可以不使用Javascript。

什么意思:
当Internet Explorer具有高级别的安全性时
?对不起…当您看到选项工具>>Internet选项>>安全性>>Internet并将滚动条移动到高:)(对不起,我的英文版jeje)也许这会让Internet Explorer停止理解Javascript代码。。。所以它不会理解HTML5Shim,然后这个网站很丑陋,我想是的..但是,当我尝试使用类似文章、导航、部分{display:block!important;}来启用HTML5时,{display:block!important;}不起作用:(:(ie8Well不支持html5标记…如果阻止所有脚本也可以,但是my style.css会发生什么?如果全部注释或删除并放置类似“article,nav,section{display:block!important;}”的内容以在IE8中“启用”html5,我会得到相同的结果:(好吧,这将取决于您所说的“不起作用”的意思。在上面的文件中,您使用了大量的jQuery库和内联Javascript。这些库都不起作用,这可能会对页面产生相当大的、几乎不可预测的影响。我建议您找到我链接的问题中提到的安全设置,尝试切换jav写一篇文章,看看有什么变化。当我说“不起作用”时,我考虑的是风格、功能……但我看到问题只发生在IE谁在服务器上工作(使用这种类型的配置…)。在“正常”(在你的个人电脑或笔记本电脑)IE9或更低版本的网站工作,因为他的安全配置,通常是“中间”。还有…抱歉用我蹩脚的英语解释。。。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />  
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>

<title>
    <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?>
    <?php if ( is_author() ) { ?><?php bloginfo('name'); ?> | Archivo por autor<?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php wp_title(''); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php bloginfo('name'); ?> | <?php single_cat_title(); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php bloginfo('name'); ?> | <?php the_time('F'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php bloginfo('name'); ?> | Resultados<?php } ?>
    <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | Archivo por Tag | <?php  single_tag_title("", true); } } ?>
</title>
<?php wp_head(); ?>
<script type="text/javascript">
    var activaMapa = 1;          
</script>
<script type="text/javascript" src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>       
<script type="text/javascript" src="https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
 <!--[if lt IE 9]>       
   <script type="text/javascript" src="<?php bloginfo('template_url');?>/js/html5_code.js"></script>       
   <script type="text/javascript" src="<?php bloginfo('template_url');?>/js/css3_code.js"></script>       
   <script type="text/javascript">    
        activaMapa = 0;
   </script>
<![endif]-->
 <!--[if lt IE 9]>
 <style>
 article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display: block;}
 </style>
 <script type="text/javascript">     
    $(document).ready(function(){
        setTimeout(function(){
            $('.oscurece').show('fade',400,function(){
                $('html,body').css({position:'fixed'});
                $('.aviso-navigator').show('fade',1600);
            });
        },400);
        $('.cierra-avisoNavigator').click(function(){
            $('.aviso-navigator').hide('fade',400,function(){
                $('html,body').css({position:'inherit'});
                $('.oscurece').hide('fade',1600);
            });
        });
    });
 </script>
 <![endif]-->

<link rel="shortcut icon" href="<?php bloginfo('template_url');?>/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />    

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Bitter:400,700%7COpen+Sans:400,600,700"/>    
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/css/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/js/bxslider/jquery.bxslider.css"/>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/js/slicknav/slicknav.css"/>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/js/shadowbox/shadowbox.css"/>

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-ui-1.10.4.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/bxslider/jquery.bxslider.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/slicknav/jquery.slicknav.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/isotope/isotope.pkgd.min.js"></script>
<!--<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/popup/jquery.magnific-popup.min.js"></script>-->
<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/shadowbox/shadowbox.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/controles.js"></script>