我是 CakePHP 的新手,使用多个 CSS 和 ID 修改主题是个问题。
<link rel='stylesheet' id='prettyPhoto-css' href='style/prettyPhoto5b31.css?ver=4.3.1' type='text/css' media='all' />
<link rel='stylesheet' id='uglyPhoto-css' href='style/prettyPhoto5b31.css?ver=4.3.1' type='text/css' media='all' />
$this->fetch('prettyPhoto5b31');
用于从 webroot 中获取 CSS 文件,但如何在布局的标题中调用两个或多个 ID?
最佳答案
你可以使用
$this->fetch('css');
获取css文件。
关于php - CakePHP 中的多个 CSS 和 id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34323804/