有什么方法可以从 Magento 1.6 中删除 yui reset.css 吗?
我正在开发 1.6.1 版本的 Magento 主题,由于某种原因,默认安装有一堆 yui 脚本和样式表最后加载在 中。其中一个是 yui reset.css,它应该作为第一个样式表加载,而不是最后一个,并且它会覆盖所有类型的样式。
我一生都无法找到这些内容发生在哪里。我知道它与 getCssJsHtml() 函数相关,但我没有看到它被添加到任何地方。
I'm working on a Magento theme in version 1.6.1 and for some reason the default installation has a bunch of yui scripts and stylesheets loading last in the <head>
. One of these is the yui reset.css which should be loaded as the first stylesheet, not the last, and it's overriding all kinds of styles.
I can't for the life of me find where these includes are happening. I know that it's related to the getCssJsHtml() function but I don't see it being added anywhere.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过主题布局来做到这一点。
只需将 local.xml 文件添加到主题的布局目录中,其中包含以下内容:
You can do it through your theme layout.
Just add the local.xml file to your theme's layout dir with the following content: