• 问题:如何在帝国CMS模板中判断当前页面是否为首页进行高亮?
  • 答案:使用PHP判断语句。
    <li<?php if($GLOBALS[navclassid]) { ?>class="hover"<?php } else { ?>class="on"<?php } ?>>