Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用styles.css调用静态块_Css_Magento_Content Management System - Fatal编程技术网

如何使用styles.css调用静态块

如何使用styles.css调用静态块,css,magento,content-management-system,Css,Magento,Content Management System,我是网页设计新手,我在header.pthml中为我的Magento网站添加了一个静态块 <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('header_links')->toHtml() ?> 现在我试图通过css定位块,但是这个块不是常规的样式。css 如何将此块放入style.css文件以添加位置?您可以使用以下代码添加css: $this->getLay

我是网页设计新手,我在
header.pthml
中为我的Magento网站添加了一个静态块

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

现在我试图通过css定位块,但是这个块不是常规的
样式。css


如何将此块放入
style.css文件以添加位置?

您可以使用以下代码添加css:

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