2015-03-19 25 views
1

我新的網頁設計,我添加靜態塊到我的Magento網站header.pthml的頭部與如何調用靜態塊與styles.css的

<?php 
echo $this->getLayout()->createBlock('cms/block')->setBlockId('header_links')->toHtml() 
?> 

現在我想定位通過CSS阻止,但此塊不在正常styles.css

我該如何設法讓這個塊進入styles.css文件來增加位置?

回答

0

您可以添加CSS使用下面的代碼:

$this->getLayout()->getBlock('head')->addCss('css/mymodule/stylesheet.css');