有什么方法可以从 Magento 1.6 中删除 yui reset.css 吗?

发布于 2024-12-22 01:01:44 字数 206 浏览 0 评论 0原文

我正在开发 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蘸点软妹酱 2024-12-29 01:01:44

您可以通过主题布局来做到这一点。

只需将 local.xml 文件添加到主题的布局目录中,其中包含以下内容:

<?xml version="1.0"?>
 <layout version="0.1.0">
  <default>
   <reference name="head">
    <action method="removeItem"><type>skin_css</type><name>css/reset.css</name></action>
   </reference>
  </default>
</layout>

You can do it through your theme layout.

Just add the local.xml file to your theme's layout dir with the following content:

<?xml version="1.0"?>
 <layout version="0.1.0">
  <default>
   <reference name="head">
    <action method="removeItem"><type>skin_css</type><name>css/reset.css</name></action>
   </reference>
  </default>
</layout>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文