<!-- Additional IE/Win specific style sheet (Conditional Comments) -->
<!--[if IE]>
<style type="text/css" media="all">@import "files/tabs-ie.css";</style>
<script type="text/javascript" src="files/DOMAssistantCompressed-2.7.4.js"></script>
<script type="text/javascript" src="files/ie-css3.js"></script>
<![endif]-->
..
<!--[if IE 7.0]>
<link rel="stylesheet" href="files/ie-7.css" type="text/css" media="all" charset="utf-8" />
<![endif]-->
如何在drupal中执行上述操作?
答案 0 :(得分:3)
我建议你使用http://drupal.org/project/conditional_styles。启用该模块,然后将以下内容放在主题.info文件中。
; Set the conditional stylesheets that are processed by IE.
conditional-stylesheets[if lt IE 7][all][] = ie6-and-below.css
conditional-stylesheets[if IE 7][all][] = ie7.css
如果您的主题基于Zen,那么这已经内置。
答案 1 :(得分:1)