在 OctoberCMS 中,我可以使用以下方法将 CSS 文件注入我的页面:
public function onRun()
{
$this->addCss('http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css');
}
我不知道,我怎样才能检查上面代码中的 IE 版本?OctoberCMS 中的以下 CSS 代码相当于什么?
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
<!--<![endif]-->