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

标签 php html css wordpress internet-explorer

好吧...我会尝试解释我的问题:

我创建了一个新网站,它可以在 Firefox、Safari、Internet Explorer、Chrome 中运行...但我遇到了一个问题:当 Internet Explorer 具有高安全级别时,我的网站无法运行!

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

这是我的“header.php”:

<!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>

该网站是用 Wordpress 制作的,如您在代码中所见。

感谢您的帮助!

最佳答案

IE8 中的高安全设置将禁止运行 javascript - 参见 this question.

因此,您的“activaMapa”变量将不会被设置,html5shim 将不会加载,等等。您对此的处理取决于您是否可以在没有 Javascript 的情况下进行。

关于php - 在 Internet Explorer 8 中打开我的网站时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24673953/

相关文章:

php - Mod 将所有文件重写到公共(public)文件夹并剥离 .php、.html(如果文件存在)

html - Jade/Pug 模板引擎中不允许属性(点击)?

javascript - 在 Javascript 中动态设置 CSS 背景

html - 菜单的内联 UL 不呈现父元素的背景

html - 用base64编码图像有什么效果?

PHP:如何在数组中搜索特定键和返回值的所有条目?

javascript - 使用 AJAX 将数据从 Javascript 移动到 PHP

javascript - 如何在ajax中制作按钮单击事件

html - 将鼠标悬停在图像上时显示带有半透明颜色叠加层的标题

javascript - 如何为 RadioButtonList 的每个重复列设置不同的背景颜色