如何在 Drupal 7 .info 文件中定义多个样式表
我想在 Drupal 7 .info 文件中定义多个样式表。这就是我正在做的:
stylesheets[all][] = support/default.css
stylesheets[all][] = support/article.css
stylesheets[all][] = support/tinydropdown.css
scripts[] = support/tinydropdown.js
在此设置中加载的唯一内容是第一个样式表。另外两个样式表和 JavaScript 不会加载。我尝试过清除缓存并重新加载主题,但它对我不起作用。
我做错了什么?
I would like to define multiple stylesheets in the Drupal 7 .info file. This is what I am doing:
stylesheets[all][] = support/default.css
stylesheets[all][] = support/article.css
stylesheets[all][] = support/tinydropdown.css
scripts[] = support/tinydropdown.js
The only thing that loads in this setting is the first stylesheet. The other two stylesheets and the javascript don't load. I have tried clearing the cache and reloading the theme, but it does not work for me.
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
刚刚遇到这个。
尝试添加 0、1、2 等
Just came across this.
Try adding 0, 1, 2 etc
我刚刚遇到了这个。请参阅此文档:
https://drupal.org/node/171209
也请注意注释。
I just ran into this. See this document:
https://drupal.org/node/171209
Note the note, too.