【发布时间】:2011-04-28 15:00:25
【问题描述】:
使用以下代码防止 IE8 之前的任何版本的 IE 加载几个脚本。
问题是脚本仍然在IE7中加载,条件标签(在文档的标题中)实际上正在渲染出来并显示在页面上!!
<!--[if gte IE 8]-->
<script src="<?php bloginfo('template_url'); ?>/scripts/voter.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/scripts/hover.js" type="text/javascript"></script>
<!--[endif]-->
【问题讨论】:
-
好问题!在不相关的说明中,如果我有差距,它也不会起作用。即,我的问题是:
标签: html internet-explorer conditional-comments