使用 CSS 为 HTML 元素设置样式,或添加自定义 CSS 和 JavaScript,全面定制文档的外观与使用体验。Documentation Index
Fetch the complete documentation index at: https://mintlify-mintlify-doc-products-public-1774055462.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
使用 Tailwind CSS 进行样式设计
w-full- 宽度占满aspect-video- 16:9 比例rounded-xl- 大圆角block,hidden- 显示控制dark:hidden,dark:block- 深色模式下的可见性
style 属性。
添加自定义 CSS
添加 style.css
style.css 文件以自定义导航栏和页脚的样式。
使用标识符和选择器
标识符
标识符
选择器
选择器
自定义 JavaScript
<script> 标签。
添加自定义 JavaScript
.js 文件注入到每个文档页面。比如,你可以添加下面的 ga.js 文件,在整个文档站点启用 Google Analytics。