【问题标题】:Css path of magentomagento的css路径
【发布时间】:2018-02-27 16:41:03
【问题描述】:

我创建了自定义主题,并从空白主题中的文件夹 Magento_catalog 覆盖了父级的 Magento_catalogcss。现在我想更改一些像 gallery 这样的 css 代码。我在 chrome 中使用 firebug 来查找 path 和画廊的行 css,但它在 pub 文件夹中显示了 style.css。我怎样才能准确地找到 css 的路径??

谢谢!

【问题讨论】:

    标签: css magento overriding magento2


    【解决方案1】:

    http://devdocs.magento.com/guides/v2.2/frontend-dev-guide/css-topics/css-overview.html

    据我所知,最快的选择是在 .less 文件中搜索样式。请记住,less 具有语法,因此大多数时候,您无法搜索与在 firebug 中看到的完全相同的行。通常我会搜索一些我在 DevTools 中看到的样式。

    你也可以尝试复杂的方式,用 sourcemap 运行更少的编译

    Compile LESS files with source maps

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-16
      • 1970-01-01
      • 2012-11-06
      • 1970-01-01
      • 2012-01-22
      • 1970-01-01
      • 2018-10-16
      • 1970-01-01
      相关资源
      最近更新 更多