我正在尝试制作一个 Drupal 8 主题,但无论我做什么,我的样式表都不会呈现。这是我的 libraries.yml 文件:
global-styling:
version: VERSION
css:
theme:
css/layout.css: {}
这是我的 info.yml 文件:
name: My Test Blog
type: theme
description: 'My test theme description'
package: Custom
core: 8.x
libraries:
- MyTestBlog/global-styling
stylesheets-remove:
- '@classy/css/layout.css'
- core/assets/vendor/normalize-css/normalize.css
regions:
header: Header
content: Content
stylesheets:
all:
- css/style.css
有什么想法吗?
最佳答案
如果您的样式表路径正确,则尝试从管理面板清除缓存
,然后检查。
关于css - Drupal 8 样式表无法呈现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30582945/