在 this page侧边栏中有一个图形:
我在 <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;}
但是,当我选择 <div class="textwidget">
时,未应用此 CSS 规则 在 IE11 中检查图形时。
最佳答案
IE11 不支持条件注释,例如 <!--[if IE]>
.
来自 MSDN :
Important As of Internet Explorer 10, conditional comments are no longer supported by standards mode. Use feature detection to provide effective fallback strategies for website features that aren't supported by the browser.
关于CSS:IE11 不应用样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38197039/