1.3. 概念:主题
Last updated on
14 April 2025
主题是定义站点视觉感观的一系列文件。Drupal 核心和模块决定您的站点显示什么内容(内容包括 HTML 文本和其他存储在数据库里的数据、上传的图像以及其他资源文件)。主题则决定这些内容的 HTML 标记 和 CSS 样式。
Drupal 有提供几个基本主题。这些主题是由社区在过去几年设计和开发的。对于创建第一个网站和熟悉 Drupal 核心如何工作,它们都是不错的选择。
Drupal 是一个成熟的内容管理系统,一般来说,提供(免费或付费)主题的第三方也都值得信赖。
如果第三方提供的主题不能满足您的需求,那么,您需要创建一个自定义主题。一个简单的自定义主题, 可以是单个 CSS 文件,给 Drupal 核心提供的标记添加一些样式。关于如何创建自定义 Drupal 8 主题, 请访问 Drupal 官网文档 "Theming Drupal"
https://www.drupal.org/theme-guide/8 [Drupal 官网文档 "Drupal Theming"]
贡献者
This page is generated from AsciiDoc source from the User Guide. To propose a change, edit the source and attach the file to a new issue in the User Guide project. PDF and e-book formats are available on the User Guide project page.
Source file: understanding-themes.asciidoc
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion