PHPLucidFrame中添加IE条件语句的最佳模板位置是什么


What is the best template place in PHPLucidFrame to add IE conditional statements?

我想知道PHPLucidFrame中为IE特定样式添加IE条件语句的最佳模板位置。我知道我可以在每个index.php中添加它们,但这是多余的。有什么建议吗?

您不需要显式添加它们,因为PHPLucidFrame会自动将IE的两个CSS类添加到<html>标记中,例如ie ieX,其中X是您正在查看的当前IE版本。因此,您可以在CSS文件中使用这些类。

.ie { /* for all IE */
}
.ie7 { /* for IE7 */
}
.ie8 { /* for IE8 */
}
.ie9{ /* for IE9 */
}

如果您不想遵循这种方式,最好使用的模板是/inc/tpl/head.php。将其复制到/app/inc/tpl/中,并使用IE条件语句更新/app/inc/tpl/head.php。它在所有页面中自动可用