2016-07-05 73 views
0

this page没有在侧边栏的图形:CSS:IE11不应用样式

enter image description here

我在<head>

<!--[if IE]> 

    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie.css" media="screen" /> 

<![endif]--> 

ie.css文件包含.textwidget {display: inline-block;}然而这个CSS规则没有被应用当我选择<div class="textwidget">,同时检查图形in IE11

回答

3

IE11不支持条件注释,例如<!--[if IE]>

MSDN:通过标准模式

重要如Internet Explorer 10的,条件注释不再支持。使用功能检测为浏览器不支持的网站功能提供有效的回退策略。

0

您错过了您要添加的linktype。它应该是

<!--[if IE]> 

    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie.css" media="screen" type="text/css" /> 

<![endif]--> 
+0

谢谢。我制作了更改,上传,清除的服务器和浏览器缓存。但是'.textwidget {display:inline-block;}'https:// www.orsgroup.com.au/wp-content/themes/nevada-child/css/ie.css'里面没有被应用。 – Steve

+0

您是否在实时链接上实施了该功能?我看不到任何变化。 –