我有一个 rails app ( source ) 我试图更改修复 Internet Explorer 中的一些显示错误。在 app/views/layouts/application.html.haml
我有:
/[if IE]
= stylesheet_link_tag "ie", media: "all"
这似乎是使用可从服务器下载的预编译 Assets 生成适当的 HTML:
<!--[if IE]>
<link href="/assets/ie-21dfbd4e306a3f4685597c40061f9d43.css" media="all" rel="stylesheet" />
<![endif]-->
样式表的内容很简单:
#logo {
display: none;
}
但是,当页面在 IE 中显示时, Logo 仍然出现。
最佳答案
根据 this page in the Microsoft Developer Network Library ,条件注释首先在 Internet Explorer 5 中受支持,在 Internet Explorer 10 及更高版本中不再受支持。
关于html - IE 条件样式表未加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20619683/