纯 CSS Tailwind CSS 页脚,具有多列布局、徽标、链接和版权插槽。 WCAG AA 可访问,可与 Django、HTMX、Laravel、React 和任何 Tailwind CSS v4 项目配合使用。
页脚组件在页面底部组织和呈现站点范围的信息,例如链接、版权和联系方式。页脚采用语义 HTML 构建,可改进导航并提供重要的元信息。 Frutjam 页脚系统支持多种布局、方向和样式,非常适合网站页脚、文档页脚和底部导航。
仅 CSS,无需 JavaScript。 WCAG AA 可访问且与框架无关 - 可与 Django、HTMX、Laravel、React 和任何堆栈配合使用。
| 班级 | 类型 | 描述 |
|---|---|---|
| footer | 根据 | Page footer container with grid layout |
| footer-title | 修饰符 | Section heading inside the footer |
| footer-horizontal | 修饰符 | Horizontal single-row layout |
| footer-vertical | 修饰符 | 垂直堆叠布局 |
基本用法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <footer class="footer p-10 bg-neutral text-on-neutral"> <div> <svg width="50" height="50" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"/></svg> <p>Providing reliable tech since 1992</p> </div> <div> <span class="footer-title">Company</span> <a class="link link-hover">About us</a> <a class="link link-hover">Contact</a> <a class="link link-hover">Jobs</a> </div> <div> <span class="footer-title">Legal</span> <a class="link link-hover">Terms of use</a> <a class="link link-hover">Privacy policy</a> <a class="link link-hover">Cookie policy</a> </div> </footer> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <footer className="footer p-10 bg-neutral text-on-neutral"> <div> <svg width="50" height="50" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"/></svg> <p>Providing reliable tech since 1992</p> </div> <div> <span className="footer-title">Company</span> <a className="link link-hover">About us</a> <a className="link link-hover">Contact</a> <a className="link link-hover">Jobs</a> </div> <div> <span className="footer-title">Legal</span> <a className="link link-hover">Terms of use</a> <a className="link link-hover">Privacy policy</a> <a className="link link-hover">Cookie policy</a> </div> </footer> |
Footer Directions
html
1 2 3 4 5 6 7 8 9 10 | <footer class="footer footer-center p-10 bg-base-200 text-on-base"> <div class="flex justify-center"> <a class="link link-hover">Company</a> <a class="link link-hover">About</a> <a class="link link-hover">Contact</a> </div> <div> <p>Copyright © 2024 - All rights reserved</p> </div> </footer> |
Footer with Social
html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <footer class="footer bg-neutral text-on-neutral p-10"> <div> <span class="footer-title">Services</span> <a class="link link-hover">Web Design</a> <a class="link link-hover">UI/UX</a> <a class="link link-hover">Development</a> </div> <div> <span class="footer-title">Company</span> <a class="link link-hover">About us</a> <a class="link link-hover">Contact</a> </div> <div> <span class="footer-title">Social</span> <div class="flex gap-3"> <a class="link">Twitter</a> <a class="link">GitHub</a> <a class="link">LinkedIn</a> </div> </div> </footer> |
使用 Claude Code、Cursor 或其他 AI 编辑器?
Cherry MCP 为您的 AI 编辑器按需提供准确的 页脚 类名称和结构。不再有幻觉课程。