【发布时间】:2012-06-30 17:45:00
【问题描述】:
我想在 head 标签内附加 css 样式表,但被附加到 body 标签。 这是我所做的: 我有一个控制器“国家”,动作为“索引”,我的观点是 index.phtml
index.phtml 包含:
<?php
$this->headLink()->appendStylesheet($this->baseUrl().'/js/dojo-1.7/dojo/resources/dojo.css')
->appendStylesheet($this->baseUrl().'/js/dojo-1.7/dojox/grid/resources/claroGrid.css');
echo $this->headLink();
这会导致样式表被附加到 body 标记内。 我只希望将这些样式表附加到此操作中。我不想在我的 layout.phtml 中包含这个样式表 我该怎么做?
【问题讨论】:
标签: zend-framework zend-view zend-layout