2016-07-05 66 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

您是否在實時鏈接上實施了該功能?我看不到任何變化。 –