Responsive Web Design

作者 aj-geddes3f5182cfd739無授權條款355 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫7 個月前更新

Create responsive layouts using CSS Grid, Flexbox, media queries, and mobile-first design. Use when building adaptive interfaces that work across all devices.

AI 產生的概覽

指導使用 CSS Grid、Flexbox、媒體查詢與排版建立行動優先的響應式網頁版面。

功能
提供參考指南與元件範本,用來建立響應式網頁介面。內容涵蓋行動優先媒體查詢策略、Flexbox 導覽、CSS Grid 版面、響應式排版與卡片元件。素材以教學為主,包含 CSS 範例與一個 TSX 元件範本。
適用情境
適用於建立需要跨裝置運作的調適性介面,包括多裝置應用程式、行動優先開發、無障礙版面與彈性 UI 系統。
執行需求
無指令碼或執行階段相依性;附帶參考 Markdown 檔案與一個 TSX 元件範本。

Responsive Web Design

Table of Contents

Overview

Build mobile-first responsive interfaces using modern CSS techniques including Flexbox, Grid, and media queries to create adaptable user experiences.

When to Use

  • Multi-device applications
  • Mobile-first development
  • Accessible layouts
  • Flexible UI systems
  • Cross-browser compatibility

Quick Start

Minimal working example:

css
/* Mobile styles (default) */.container {  display: flex;  flex-direction: column;  padding: 16px;  gap: 16px;}
.card {  padding: 16px;  border-radius: 8px;  background: white;  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);}
.grid {  display: grid;  grid-template-columns: 1fr;  gap: 16px;}
/* Tablet (640px and up) */@media (min-width: 640px) {  .container {    flex-direction: row;// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Mobile-First Media Query Strategy [blocked]Mobile-First Media Query Strategy
Flexbox Responsive Navigation [blocked]Flexbox Responsive Navigation
CSS Grid Responsive Layout [blocked]CSS Grid Responsive Layout
Responsive Typography [blocked]Responsive Typography
Responsive Cards Component [blocked]Responsive Cards Component

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

來源與署名

來源:aj-geddes/useful-ai-prompts位於skills/responsive-web-design提交3f5182c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架