【问题标题】:add conditional style to IE in drupal [duplicate]在drupal中向IE添加条件样式[重复]
【发布时间】:2017-12-07 10:17:37
【问题描述】:

我想在 IE 浏览器中添加条件样式表。我已尝试将其添加到主题 html.tpl.php 文件中

<!--[if IE]><link rel="stylesheet" type="text/css"  href="themes/themeName/css/ie_style.css"></link><![endif]-->

这个文件路径也是正确的,但不包含在 IE 浏览器中。

【问题讨论】:

  • 您是否针对任何 IE 浏览器或特定版本?
  • 针对 IE 9,10,11

标签: php html css drupal


【解决方案1】:

试试这个,它将针对IE 7以下版本的所有IE浏览器。

<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="themes/themeName/css/ie_style.css"></link><![endif]-->

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-26
    • 1970-01-01
    相关资源
    最近更新 更多