GoogleChrome从IE10 @import hack导入CSS

时间:2017-05-17 09:11:17

标签: html css google-chrome internet-explorer-10

以下CSS用于添加IE特定样式。但GoogleChrome也在网络控制台中下载它们。为什么呢?



<html>
  <head>
  
    <!--[if IE]>
    <link href="/Style-ie.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    <style type="text/css">
      /* if IE 10 */
      @import url('/Style-ie.css') screen and (-ms-high-contrast: active), (-ms-high-contrast: none);
    </style>
    
  </head>
</html>
&#13;
&#13;
&#13;

0 个答案:

没有答案