Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想指定一个仅在我在页面上时适用的 CSS。我没有找到解决方案。
谢谢您的帮助
在配置文件 pages.rb 中使 config.use_view_templates = true 的标志为true
它将为您提供为该页面选择模板的选项。 您可以在管理页面选项卡 -> 高级选项下找到它。 您还需要在 pages.rb config.view_template_whitelist中添加模板名称 现在您可以在该页面上添加样式。 希望它可以帮助你。