在Magento 1.x中,我可以使用如下代码的帮助器将CSS文件添加到头部。
<reference name="head">
    <action method="addCss"><stylesheet helper="module/helperclass/helperfunction"/></action>
</reference>有人知道如何在Magento 2中执行此操作吗?
                  你把这个整理好了吗?或者您对此有其他选择吗?让我知道您是否发现一些东西
                
                
                  
                    —
                    Dev 
                    
                  
                
              
                  抱歉,我没有解决方案。现在,我将此代码<link rel =“ stylesheet” type =“ text / css” media =“ all” href =“ <?php echo $ _helper-> getCSSFile()?>”>添加到“ after.body.start中“ 容器。
                
                
                  
                    —
                    迈克,
                    
                  
                
              
                  我找到了解决方案,请检查以下答案。
                
                
                  
                    —
                    麦克,