Drupal:多个样式表 [英] Drupal: Multiple Stylesheets
问题描述
我目前正在为公司创建一个自定义的Drupal主题,但是我无法加载多个样式表.
I'm currently creating a custom Drupal theme for my company and I'm having trouble getting multiple stylesheets to load.
我按照此页面上的说明,通过将格式表添加到.info文件中,格式为:
I followed the instructions on this page by adding stylesheets to the .info file in the format:
stylesheets[all][] = style.css
stylesheets[all][] = name2.css
etc...
但是,当我加载页面时,没有任何变化,当我查看源代码时,它始终列出style.css,但似乎忽略了其他内容.在添加其他样式表的过程中,我是否误解了?我可能做错了什么?
However, when I load the page nothing changes and when I view source, it consistently lists style.css but seems to ignore the others. Am I misunderstood in the process of adding additional stylesheets? What could I be doing incorrectly?
感谢您的帮助!
推荐答案
请确保已禁用/admin/settings/performance
上的优化CSS文件"和缓存模式"设置.点击页面底部的清除缓存的数据"按钮,尝试清除Drupal缓存.
Make sure the ‘Optimize CSS files’ and ‘Caching mode’ settings on /admin/settings/performance
are disabled. Try clearing the Drupal cache by hitting the ‘Clear cached data’ button on the bottom of that page.
这篇关于Drupal:多个样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!